Undo/Redo—initial implementation

WYMeditor's undo is, in some cases, not accurate.
I feel that `re` and `un` should be constants defined somewhere