Large Deviations and Idempotent Probability