Widgetise demo menu

Also separate out menu functionality from the debug bar.

Change-Id: I04c1929c5279968ca3b0ec475681bd587ae58356