Undo Support for Zoom and Panning

(ORG-8921)

After using Z hotkey to do zoom and panning, user can press Ctrl+Z multiple times to restore to original scale.