Last month’s mass demonstrations in Sri Lanka have sent warning signs to the rest of the world. This as several middle-income and developing countries are dealing with similar problems of political dysfunction and the impact from external economic shocks. Sri Lanka has a higher GDP than Peru, Egypt and South Africa, yet it’s devolved into…