Delete editorinstances when closing scope, stopping resourceleaks and other badness.

By listeing to scope.destroy we can delete instanses f.x. when the user
navigates to a new page.