Moving menu logic to separate file, and putting it in the context menu
(fixes #2)
Groupping menu items by family (fixes #3)