Move DHT code into a separate project