mod_menu: Add menuexport JSON service

The service dumps the menu structure for a given ID in JSON format, including
title and URL of each menu item.

This new service is accessible at `/api/menu/menuexport?id=343434`