Displaying linked documents in a document's template

Making good use of the brand new linked documents exposed in the API, and listing them in the "document" template.

**Careful: do not merge this as long as the linked documents feature is not live in all repository APIs!**