Add multithread support for content management.

TODO: merge similar thread pooling code & cleanup
credits: mikeagun for answering my random java questions