The Social Institutions of Capitalism: Evolution and Design of Social Contracts