PuppetDB: broken links in connect_puppet_master

Fixed /api/query/v3/events.html
and /api/query/v3/events.html
(PDB-1028) Make /v4/catalogs queryable

This expands the /v4/catalogs endpoint to have full query and paging capacity,
and brings the catalogs endpoint into the query engine like the others, which
will be useful for syncing and future consistency.