Improved the server, moved the connection-stuff to it's own
daemon-thread. Added a server controller that expects commands like
"shutdown, exit, q", so that we can easily shutdown the server without
having to kill the task manually.