Pure JS implementation of a msgpack encoder for node.