Refactor itemedit

No longer spaghetti signal handling
Close item edit if nothing picked on new slot
Make imagebrowser work in itemedit
Context item import, tweak import/export dialogs