Put shortlinks into the document metadata

Downstream version of https://github.com/openannotation/annotator/pull/470

Discussion about the issue: https://github.com/hypothesis/h/issues/1760