EntityManager now cleans up component pointers in destructor and on removal of entities or their components. Added tests for entity removal.