integcli: fix failures caused by tiny map randomization

This PR adds some functions to the cli integration tests to be used with JSON output. 

The PR is also modifying the code to use these newly added functions to work around the new tiny map randomization feature of Go 1.3.
```
return reflect.DeepEqual(result, expected), nil
```