This is a really nice explanation, thanks for taking the time to post it. We've got our own real time collaborative editor going with code-mirror at https://www.overleaf.com (formerly writeLaTeX), and have experienced many of the same issues!
What are you next plans for it? Be good to have a chat sometime in the new year if you're interested :)