First version, compiles, not tested
Merge branch 'master' of github.com:joernnilsson/arduino-state-machine