Ten years ago, a rooftop array in Sonoma County worked a lot like a savings account. Every extra kilowatt hour sent to the grid at noon came back at full retail value after dark. A battery was a luxury bought mostly by people who worried...