Address issues causing solar panels to not work.

Base power generation on ambient light level instead of just on for bright and off otherwise.
Base "inside-ness" on location of solar panel, and ignore vehicle roofs.
Fixes #1217 Fixes #1660 Fixes 1727