Remove the query endpoint (it's really supposed to be part of the Query project)
Add support for using the new authenticated endpoint to the self-test code