Update deprecated AFNetworking APIs. Fix compiler warnings due to more strict checks in Xcode 5.1.