Added threading to http server