File transport waits for stream to drain before returning control to cal...

...lback (a la Node.js stream docs). Significantly improves performance, esp. with large batch sizes.