Some states offer homeowners the option of generating their own power and sending what they don’t use back to the grid. Other states are preparing to.