Only open one connection at a time. Don't try another while connecting is still running.
Also make spool size configurable.
Make the individual batch sizes configurable.

Could be extended to size setting per input source and
for some time based batching (e.g. batch up to a minute)
Merge pull request #66 from pilhuhn/ptransimprove

Ptrans improvements