Technological breakthroughs have put renewable energy on a competitive footing with fossil fuels. And the international community seems poised to forge critical agreements on sustainable development and the fight against climate change.