Quantum Theory Of Open Systems