[WIP]Fixed #226 - Eliminates ordering issues in the SyncMessage protocol

wrap this in the ws.readyState thing anyway.