modernize and improve type-safety of the DHT put implementation and tests. use unique_ptr instead of malloc for dht put items.