Put files to the content store in parallel.

Also makes the number of threads configurable.