Reworked DHT server to look like as lib