ResourceManager and Resource class implementation. ( See last commit )