Restructured EngineServer to make MainProgram less of a god-class.