Undo/Redo keys & track saved state

Added keybindings of ctrl+z and ctrl+y shortcuts and a mechanism for
tracking the most recently saved state of an editor on the undo/redo
stack.