Fixed typos in comments.
Inlined flash_log_running()
Track reason for reset & report in status packet

- count number of resets since last power cycle
- on boot, read reason for reset and boot into awake state if reset was
not externally triggered
- moved logging flag from standalone byte in status packet to one bit
in the flags field
- added boot counter and reset reason fields to status packet