Started implementing ability to load custom config files (currently unstable).

Feel free to help out with this if you like :)
Finished stable implementation (as far as tested), still requires more testing.
Keep g_settings as a 'static' variable rather than a direct object.
Better implementation for forming the singleton wrapper.
Fix to the makesingleton function.
Fix building issues.
Update copyright for 2014
Proper termination and initialization of the ConfigManager.
Can now create new configs on the fly using: local config = g_configs.create(file)
Can now unload a Config by config:unload()
Fix accidental cmake changes.
Removed onUnload from corelib and added more lua bindings for resources.
Merge pull request #510 from edubart/configs_impl

Implementing ability to load custom config files