line wrapping in editor
support initializing doc on join

Synchronizes initial version vector and records with the first peer it
connects to.