[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
NSSecureCoding

Fix minor typo in which NSecureCoding was referenced in comments and pragmas, and I assume NSSecureCoding was intended.
Merge pull request #2230 from robertmryan/master

NSSecureCoding
Merge commit '9e37c9d830fdbcce82367340243fdd2541299779'