Add NSURLSessionConfiguration support

Based on #18.

@dfed