Add basic handling of requests (create a thread per request).