work in progress
Complete re-factor of FSM
More formal FSM model generates an event from (sensor,delta-t)
Each valid (event,state) combination has a Map entry
which specifies the (action,next_state).
Refine the FSM pattern

and fix an error counting days
Cosmetic

Add some comments, tidy up
Merge branch 'new_FSM'
+++
Tune timing values