Update editor.clj

Implement the close method of IAppPane, and move some related methods.