added get_docs template global that allows getting a document object in a template via the URL