Vortex Dynamics, Statistical Mechanics, and Planetary Atmospheres