Update AFNetworking to 2.2.1.
[core] Deprecate NIInvocationWithClassTarget in favor of NIInvocationWithInstanceTarget.

Closes #531.