move some things for udp. added a class for kademlia.