Undo/Redo—initial implementation

WYMeditor's undo is, in some cases, not accurate.
This is a style change for JShint stuff.