Added entity component system. More cleanup for ECS refactor.