A planned community of homes with Tesla’s Solar Roof and Powerwalls could offer new insights into the company’s energy future.