Make definition of menu items as code-free as possible. This should
allow us to eg. save configurations to a prefs file.