Add links and pagination for versioned requests

When document versioning is on, add `?version=<version_num>` to HATEOAS
`self` links. Also adds pagination links for `?version=all` and
`?version=diffs` requests when results exceed `QUERY_MAX_RESULTS`.

Partially addresses #475.
Add tests for version links
Fix to make version pagination tests pass.
Versioning added to HATEOAS
Merge branch 'jenmontes-issue_eve475' into develop