Work in progress

Added min battery voltage shutdown and power state transitions so that
charger signals going to the Mega are off when the Mega is turned on. In
the middle of debug.