made server multithreaded

each request is processed in a new thread