Moved popup-menu functions to Roundcube core for seamless integration of (stackable) skin and core menus