UI/editor

added editor.close, editor.goTo and editor.save methods
ui/editor: added events
added Editor.event
fixed Editor.connect