Add buffer class to node.js interface

It seems worthwhile to use overloading here at least for the `(str, encoding)` constructor -- since the other two versions of the constructor don't have a second parameter.