Mean Field Limits for Weakly Interacting Diffusions: Phase Transitions, Multiscale Analysis, Metastability and Inference