libaudqt: split out menu management core from plugin menu code