Option to change polarity of TURN_POWER_OFF
Update some definitions

Decouple the constant defines from the implementation details a bit
more.
Got more state transitions working
Mostly debugged

Still need to test BT sleep change requests