Fixed bugs in FoundationOverlaySystem.
Rewrote the majority of how the ECS works.