Refactor to work with AFNetworking 2.0 version

Tested with AFNetworking 2.0.2