Modify the webserver to use threads

The while True loop causes performance problems when you call
handle_request twice (since each will timeout and then it will loop).
This commit modifies the webserver to spin off two threads to do the
serving.