Sync cursors better using cm.setBookmark

I DEMAND AS PAYMENT A FREE LIFETIME SUBSCRIPTION TO FIREBASE
=============================================================

Also only send cursor updates when the client is synchronized.

Fixes https://github.com/firebase/firepad/issues/3 but not https://github.com/firebase/firepad/issues/4

Possibly doesn't work so hot on Ace.