Add hooks in the HTTP API to allow requests via a SOCKS5 client
There needs to be a way from inside the HTTP test template to call doRequest with the option use_tor set to true.
This will allow us to perform HTTP requests over Tor for control purposes.