Greater parralellization of dirty_map

Not yet ready to merge.

@cjanderson23 Take a look at my changes to this function and see if you understand how this could be used to provide the threading your looking for.