Added a threadpool API that will be used by the server to handle HTTP requests.