v1.13.0: Add batch support to CLI. (#158)
* Add batch support to CLI.
If we have thousands of targets at some point the proxy will reach a CPU/RAM limit. For most operations this isn't needed and we could instead just send N batches.
If batch > 0 break up the target list into N chunks of batch size and send them over.
Adjust integration tests to force a batch size of 1 to validate. Turn back off for tail/ptrace/core where we expect 2 running in parallel for testing.
* Fix divide by zero...
* Close the conn, not defer as they just build up in the function otherwise.