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`

(cherry picked from commit 4b7f2ea315f05b62a32c2297efaec20d29e5a2ea)