Allow webserver to be stopped.

Also add initial support for HEAD.