Battery monitoring, sleep durable time.

Added function to measure battery voltage using internal voltage
reference.
Added accumulator off WDT to keep track of time regardless of
wake/sleep state.