added a StateManager component
Merge pull request #154 from lexoyo/develop

added a StateManager component