Thinking of installing solar panels yourself? Legal requirements, permits, and incentives differ across states and may impact your plans more than you expect.