KAZOO-3026: Fix edit of device with ip auth

I think you can use `wh_json:foldl/3` here

```erlang
wh_json:foldl(fun extract_all_ips_fold/3, [], JObj).

extract_all_ips_fold(_Key, JObj, IPs) ->
    case wh_json:get_value(<<"cidr">>, JObj) of
    ...
    end.
```

This avoids looping over the keys in `wh_json:get_keys/1` only to loop again using those keys.