Renewable energy received record investment in 2011 and expanded massively, but it also struggled with dwindling political support and plummeting prices. The industry faces several more years of growing pains before it can properly compete with fossil fuels.