Many improvements to make the SourceCollector more usable from the command-line

Tests running here: https://ci.openquake.org/job/z-devel_oq-commonlib/31/
Fixed