split network client into NSURLConnection and NSURLSession implementations