AFNetworking 2.0.x migration

Changes made to be compatible with AFNetworking 2.0.x
Merge pull request #107 from TomKremer/master

AFNetworking 2.0.x migration