Added timeout for ServerSocket.accept() to cope with stop() correctly. Protocol-bugfix for joining nodes.