Factoring out request and response serialization tests into separate files
Adding tests for encodable and re-encodable query string parameters
Replacing test.com with example.com
[Issue #2093] Using serial queue to synchronize creation of session tasks to prevent bug where NSURLSession creates tasks with non-unique identifiers (see radr://5871104061079552)
AFMaximumNumberOfToRecreateBackgroundSessionUploadTask -> AFMaximumNumberOfAttemptsToRecreateBackgroundSessionUploadTask
[Issue #2118] Changing maximumNumberOfConcurrentOperations to 1 for URL session delegate queues, to enforce serial execution of callbacks like in previous releases
[Issue #2148] Removing parameter from application/x-www-form-urlencoded content type
[Issue #2147][Issue #2078] Tracking whether properties mirrored by NSURLSessionConfiguration are set on AFHTTPRequestSerializer in order to allow session configuration to trump request defaults
Fixed possible deadlock

The deadlock could be caused due to KVO subscription under the lock. The scenario is as follows:

1. AFURLSessionManager gets a callback and enters critical section with the following stacktrace:
__psynch_mutexwait + 24
_pthread_mutex_lock + 304
-[NSRecursiveLock lock] + 10
-[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:] + 114
-[NSObject(NSKeyValueObserverRegistration) removeObserver:forKeyPath:context:] + 210
-[AFURLSessionManager removeDelegateForTask:] (AFURLSessionManager.m:365)
-[AFURLSessionManager URLSession:task:didCompleteWithError:] (AFURLSessionManager.m:771)
__55-[__NSCFURLSession delegate_task:didCompleteWithError:]_block_invoke + 48
...

2. Meanwhile, in different thread client code tries to create download task, and client has some KVO subscription/unsubscription in stack frame:
__psynch_mutexwait + 24
_pthread_mutex_lock + 304
-[NSLock lock] + 108
-[AFURLSessionManager setDelegate:forTask:] (AFURLSessionManager.m:355)
-[AFURLSessionManager downloadTaskWithTask:progress:destination:completionHandler:] (AFURLSessionManager.m:561)
-[AFURLSessionManager downloadTaskWithRequest:progress:destination:completionHandler:] (AFURLSessionManager.m:525)
...
<KVO operation somewhere, it has acquired NSRecursiveLock that is blocked in prev frame>
....

3. We're in deadlock state: callback thread has acquired AFURLSessionManager's lock and waits for KVO lock, while client code has acquired KVO lock and waits for AFURLSessionManager's lock.

Resolution: you shouldn't put KVO subscription/unsubscription under the lock without good reasoning.
Merge pull request #2153 from DeeSee/master

Fix for possible deadlock
Add removesKeysWithNullValues setting to serialization and copying.

Preserve removesKeysWithNullValues through copying and serialization.
CocoaDocs colour scheme

Think this goes pretty well your AFNetworking.com branding. You're welcome to go make your own at http://cocoadocs.org/readme/

![http://cl.ly/image/2Z2c0h390L0M/Screen%20Shot%202014-07-01%20at%2010.20.36%20PM.png](http://cl.ly/image/2Z2c0h390L0M/Screen%20Shot%202014-07-01%20at%2010.20.36%20PM.png)
Merge pull request #2168 from orta/patch-2

CocoaDocs colour scheme
Merge pull request #2162 from jshier/master

Add removesKeysWithNullValues to serialization and copying.
Ensure copyWithZone: calls the parent imp

AFURLConnectionOperation implements NSCopying, so we need to call the
parent's version of copyWithZone: to ensure the object is properly
copied.
Merge pull request #2172 from streeter/copywithzone-in-subclasses

Ensure AFHTTPRequestOperation's copyWithZone: calls the parent implementation
open the in-memory output stream immediately when scheduling it on the run loop
- if never opened (as was the case if no response was received) apparently calling close will not implicitly remove the stream from the runloop (apple docs are misleading?)
AFImageCache protocol should inherit from NSObject
fix for import as cocoa touch framework as module to a swift only project

Signed-off-by: Stephan Krusche <krusche@in.tum.de>
Fixes an issue with the request serializer silently handling an error

When a query string serialization block is set on
`AFHTTPRequestSerializer`, if it was to fail with an error it would be
silently handled and the serialization would still return an NSURLRequest.