RestKit/RestKit — pull request #1010 by lhunath (2012-10-24 19:39:48+00:00)
Title: Various internal fixes

1. Use the ISO standard date formatter by default for formatting serialized dates.
NSDate's description is not a standard format that other web service frameworks understand.

2. Restore authentication and make sure redirected calls also have default headers applied.
This makes sure that when the server forces a redirect, the custom headers are properly set on the new request.

3. Cache should always use permanent ObjectIDs, otherwise they won't be found in other MOCs.
I had serious problems with the cache not finding cached objects because the cache doesn't make sure to cache its instances by permanent objectID.

4. Don't try to connect nil values.
When an expected relationship is nil, don't try to connect causing errors, just leave it nil.

5. Support serialization of NSSets and NSOrderedSets in AFNetworking.
A separate AFNetworking pull request exists to add support to AFNetworking for serializing sets and ordered sets, which is currently impossible, breaking any CoreData entities that rely on these.