Renewables and the Smart Grid