Create MXIChatWindowController and move most of MXIAppDelegate there.