Growing numbers of homeowners are installing batteries that store electricity when it is cheap, which helps balance the grid and cuts emissions, and cheaper plug-in batteries will soon let more people do the same