server: fix when already listening
removed testing stuff
server: keep track of connections
add generic dispatcher