deltaTime, singleton, statemanager

Added a function to get delta time
framework uses singleton design pattern
statemanager is now part of the framework