Reporting/Collector: add max-children argument

Add option to limit the count of child threads to import the transactions.
If the number is exceeded the next import will block until one thread is
ready.
Reporting/Collector: fix python2.4 compatibility
Merge branch 'reporting-limit-children' of https://github.com/AlexanderS/bcfg2