Add a template method to prepare a NSURLSessionDataTask before it is resumed