AFNetworking 2.0.x migration

Changes made to be compatible with AFNetworking 2.0.x