Entropy, Large Deviations, and Statistical Mechanics