Keep drawing persistence on collaborative edits

Various bug fixes and also when you edit a drawing the changes are visible on next load.

Thanks to @tranek for the hard work!