Made numerous fixes to the Entity Component System. It works now, but there's no entity manager yet.