Make the server threaded
Merge pull request #1 from porras/threads

Make the server threaded