Dynamics in Metal Halide Perovskites for Optoelectronics