Implement HEAD requests, see issue #27.