Includes a fix for self-signed certificates with templated URLs, where the RestRequest.url property was not being updated by the call to performSubstitutions(), and this was causing us to always take the default authentication handling route because URLComponents was trying (and failing) to initialize from a URL which still contained templated elements.
Enables logging output in the tests by copy-pasting PrintLogger (a simplified version of HeliumLogger) which we use in other repos' tests, eg. Kitura. Without this, you can't see error messages logged from SwiftyRequest as there is no logger registered, which makes debugging hard.
Resolved a local failure of the CircuitBreaker test, where the supposedly inaccessible URL was actually returning an HTTP response when connected to certain wifi networks. I've replaced it with a reference to localhost on a port that the server is not running on, which should be unaffected by other network connections.
Resolves #55
Also:
performSubstitutions()
, and this was causing us to always take the default authentication handling route because URLComponents was trying (and failing) to initialize from a URL which still contained templated elements.