WIP: the controller works, but buttons don't get disabled and logging doesn't work like it should. I suspect it is some sort of thread/inversion of control issue.
Merge pull request #3 from antonl/fsm-rewrite

WIP: the controller works...