Added Kademlia implementation and events