Added wrapper class Object for IEntity

Began improving memory management
Added textures
Improved XML parser