Added undo funtionality in 'code frame' regarding issue #12

First branch (undo_redo) commit:

Currently simple undo/redo implementation.