Add `concurrent` namespace, with some concurrency utility functions

This commit adds some code that I've been experimenting with relating
to creating a simple API for farming out producer/consumer jobs
to multiple threads.
Refactor import to use new producer/consumer code