Added several improvements to the entity-component system and fixed a few
bugs throughout the engine code.