The world has spent a decade gorging on fuel from America’s shale basins, and oil prices are topping $100 a barrel. So it might seem an odd time to be contemplating the energy transition. But that's precisely the task facing the small towns across places like Texas, Wyoming and New Mexico: deciding when to move on from their bedrock industry, even when it’s in an upswing.