Elon Musk’s plan to “operate as a massive distributed utility” is taking shape. Tesla first tested a “virtual power plant” in California, inviting owners of Powerwall home batteries to sell electricity back to the grid during peak times to help mitigate brownouts.