Decouple Server from ServerManager/WindowManager.

SM now listens to frame closing events, so Server doesn't need
to hold on to a reference and inform it that it's closing.