added error handling for out_of_memory in ResourceManager.
added comments on req
Merge branch 'master' of https://github.com/sywor/GameEngine