Finished DH implementation as per Node.js spec

Finished the DH implementation to the Node.js Docs/Spec. Some small tidy
ups and sanity/error checks will be added while I port the unit tests
in. Its fully working at the moment (if you use a predefined prime,
generating parameters isn't supported yet)