Redirect JSON requests for browse and search to public API (using routes).

This is an alternate approace to alphagov/frontend#298.  Only one of these 2 should be merged.