Rework editor menu a bit:

  - move submenus at the top of the context menu
  - remove calls to add_separator from the modes. It's up to you to add a seprator
    before you add a mode which adds some action (this is more flexible)