Trace logging

Updated the loggers to log the actual url, unless the trace logger is used in which case the url will be rewritten with traceLogger.curlHost and traceLogger.curlPort.

Added docs for the trace logger and increased the testability of the log format a smidge.