Add a shutdown method for adapters

This is useful for integration testing, which would start and stop a
server. In normal operation, the signal handler would perform the
shutdown.
Use net/http instead of httpclient