Move the thread pool out into its own library.