Added catalog navigation inside mod.php

In response to #316, I have added nondestructive routing edits so mods can use the catalog without leaving mod.php. It repurposes the catalog build script into a dynamic display (similar to how mod.php handles displaying the index page, I think...).
It works on my local environment.