Added sensor state machine

Sensor state machine added with startup/shutdown handshaking sequence
with base station as well as heartbeat.

Issue with incoming (from base station) commands being blocked when
radio is burst transmitting data.