Markets, Productivity, and Happiness in a Historical Perspective