Remove defgame macro.
Move most functionality to core namespace.
Big fixes to entity system.