Statistical Mechanics of the Steady State