Open Systems Approach to Quantum Optics