Dynamics of Open Quantum Systems: Measurement, Entanglement, and Criticality