Add undo state hook

Adding a hook to track availability of Undo/Redo.
Merge pull request #12 from Areson/feature-pauseUndo

Add undo state hook