added undo and redo on keyboard.
added clickable undo/redo buttons.
Merge branch 'master' into gh-pages