Added StateManager, States
Merge branch 'master' of https://github.com/flanr/GPIBase