add inventory support for index and fqdn lookups

This is a draft implementation of basic 'inventory for 1234' support, so we can get direct links to inventory. It'll also list A/CNAME records, not just SYS records, which is a nice side effect.

Testing required, but this should be sufficient to ship for now until we have a way to search services (which aren't yet in inventory).