Implement GNOME 3 application menu support

This is basically the port of this patch to the actual codebase and API:
https://trac.transmissionbt.com/attachment/ticket/4890/0004-Port-to-the-new-GMenu-API.patch

For sure the menu have to be redesigned.