Changes to bibliography API to allow for document templating.