tidied up the get_hash implementation

and started to add the post_hash one.
Going to have to add something to handle both types of response to the
dhtValueCallback.
getHash returns a string, but postHash should probably return a boolean
or something.
Either way both will be using the dhtValueCallback()