Implemented undo/redo accelerators. Fixes #43.