Init menus in the Extension class

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>