Implemented query string parameters for documents, as per the apiary spec.
See 18F/afsmallbiz#15
Added query string parameters and test coverage for new functionality.