Cities such as Hartford are turning to microgrids not only as a way to ensure that vital services remain available to the public, but also to make their electricity more energy-efficient, reducing their contributions to climate-change-causing greenhouse gas emissions from power plants.