Extending the Document Control functionality

Still a work in progress.

Extending the document control api to do all the things you'd expect it to do. Things to be done:
* pagination support
* better adherence to jsonapi spec (links, meta)
* file versioning (probably not in this sprint)
The DBA in me wants to replace this script-level filtering with query-level filtering.  I'll make myself a small low-priority ticket to do so later.