Implement multiprocess support

This patch drmatically speeds up the metadata extraction process (up to
6x faster here).
I am not yet 100% happy with it, but it is a good first step.
Also fixes a couple of other bugs and improves logging once again, so we
can find issues more easily.