Rich nations built their wealth on coal, oil and gas. Now the world is asking poorer countries to chart a different course.