Now works with NSURLSession by taking in configuration and if it’s null ...

...defaults to NSURLConnection if NSURLSessionConfiguration is nil.