CGE2: Add mainLoop() and handleFrame().

Also implement connecting things.