Metadynamics: A Unified Framework for Accelerating Rare Events and Sampling Thermodynamics and Kinetics