Institutions as Tools for Overcoming Social Dilemmas