Clean up closed connections in node server
Fix sessions in server and peer. Basic router.