Invia SMS: The Boltzmann-Sanov Large Deviation Principle and Applications to Statistical Mechanics