Added copy constructor protection macros
Moved Globals to resources
Added use of log