Undo/Redo

WYMeditor's undo is, in some cases, not accurate.
This is the starting point of the browserification of the `object-history` module. The reason for this file is that we don't use a module system. We use old 'n' moldy globals. This turns it into a global.