Undo/Redo—initial implementation

WYMeditor's undo is, in some cases, not accurate.
Yup. Took care of dialogs, as well.