Added a basic resource manager class.
Changed the state design to now have a onEnter and onExit methods. These can be used to do intial loading of resources for the states and for other things.