Webclient: refactor menus, pt.3 (#532).

GUITookit: the Menu's generic parts are factored out into new class BaseMenu.
This will be the base class for the upcoming context menus as well.

See #532.