Create advanceMainPatch() method on MasterController so REPL doesn't
have to worry about individual controllers.
Move preferences handling to a separate class.
Move file loading into the MasterController.