chunk requests to avoid overrunning URL length limits

With many nodes in a series, we were running into jetty URL length limits, even when pushing the limit to ridiculous lengths like 32k.  This patch chunks the request up into multiple requests, limiting the (configurable) length.  It defaults to just under 8k, which should work with most web servers.

Signed-off-by: Stephen Gran <stephen.gran@piksel.com>
Could you make this a top-level function? It looks like it doesn't need to be defined here. Also it'd be great to use more explicit variable names than `tmp`, `r` and `f`.