[WIP] Allow local undo

This will allow local undo with ShareJS for `0.6` and `0.7` without any modifications to ShareJS itself.


See Dignifiedquire/undo for a usage example.