Fixed multiple problems with ECS, added some test components, reimplemented event posting