doc: fix diffieHellman.getGenerator() description
npm: upgrade to 1.3.26
src: refactor buffer bounds checking

Consolidate buffer bounds checking logic into Buffer namespace and use
it consistently throughout the source.
Merge remote-tracking branch 'upstream/v0.10' into v0.10