Adding https tests and support for HTTP_DEBUG from env.