[Delivers #48947175] Flesh out the public templates

Introduces more record subrecords into the public templates, including links to Agents whereby agents can now be treated as a facet of a search.

Also fixes the previous implementation whereby records were queried up the component tree to populate the breadcrumb trail -- the tree is now indexed per tree node and allows us to establish a nodes position in the hierarchy very quickly.