Initial work on the Resource Manager
* Added basic Resource manager
* Added directory parsing and loading
* Small bugfixes and amends