Thermodynamics and Control of Open Quantum Systems