Configurable authentication lookup

Could we add tests for the `MockHttpServer`'s default handler and support for custom handlers?