fixed the problems with state machines in components.
Merge branch 'master' of github.com:mbeddr/mbeddr.core