Overhaul of threading in simpleminer to improve concurrency.