Add Pause Function

Added function to allow "pausing" of undo to, which temporarily turns it
off without destroying its state. This allows us to switch into
different view modes without loosing our ability to undo changes.