dgram support for cluster

@bnoordhuis review?

PS: You've seen most of the *first* commit already. I only added tests to it. The second commit is new.

/cc @isaacs