Infrastructure for state  machinery. For keeping states over rotates
etc. In effect connections is now kept over rotates.
Merge branch 'master' of https://github.com/herjulf/Read-Sensors