Expose the innards of DH and DSA

So we can manually construct or serialise keys at some point.

Also BN2BIN stuff because JWK uses the base64 version of this
representation.