Undo/Redo—initial implementation

WYMeditor's undo is, in some cases, not accurate.
Read through and you'll see where this is used.