using sharejs doc on server side when saving

The current implementation posts the whole text when saving a document whilst it could be better to actually use the sharejs version on the server side.
In this way you would be able to speed up the operation and save on the amount of data transferred.