Categorize entries into sub-menus based on freedesktop standard menus

Fixes #3