Global Imbalances and the Lessons of Bretton Woods (Cairoli Lectures)