Added code to support updating model when editor changes

Added code to support updating model when editor changes to support undo
functionality and implemented EditorActionHandler in editor gui and
controller