Add a new setting to debug HTTP connections

The setting is called 'enable_http_logging', is disabled by default, and produces
a log at $log_directory/http.log