Update node package so it is flexible enough to be used for riak

Also, add FreeBSD support