Refactors the httptest server to take a path and json response

- Now handles multiple endpoints
- API authenticator now uses the resolver