Sync cursors better using cm.setBookmark

Also only send cursor updates when the client is synchronized.