Moved undo/redo into CodeEditors and hooked up AvalonEdit's undo