Moved the major part of message queue and window timer handling into the server. Implemented MsgWaitForMultipleObjectsEx.