Implements all the ECS's functions for PhysicEngine.

Next step : refactor everything to separate engine/ into utility/ and ecs/ and create the real engine/