start implementing undo/redo
undo/redo working!

I thank the many dedicated contributors to the wonderful state of HTML,
CSS, javascript and jquery for the ease with which I am able to code
this.