Fix bug which prevented server from reading stdin

Have to run the new-connection-fn on a separate thread from which start is called!
Remove logging calls in test