debci-generate-index: modularize generation of data for all packages
debci-generate-index: ensure a single instance

Extracted the critical section already present in debci-batch into
lib/functions.sh and use that
debci-test: update global indexes as well
0.8 release