The rapid development of rooftop solar and battery storage technology could be as transformative to the economy and modern life as the U.S. oil and gas boom, Energy Secretary Ernest Moniz said.