Renamed statemanager.lua
Added resource manager