Thread-ThreadPool to Task Conversion

My refactoring tool converted good candidates of Thread-ThreadPool usages to corresponding Task constructs. I manually verified the transformations.