move undo/redo to own file
fixed #388, clear undo stack when a new script is loaded or begun
Merge pull request #420 from waterbearlang/388_clear_undo

388 clear undo