Added an undo button.

TODO:
- Reverse animation for undo.
- Get the undo history size from an URL get param (?)