Dynamical Mean-Field Theory in Statistical Physics: Glassy Dynamics, Ecosystems and Interdisciplinary Applications