Use content hash for outFn in diaLink.

And add some docs to RegisterLink.