Added support for adding extra HTTP headers and "insecure" HTTPS (self-signed certs)