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

This commit reorganizes and refactors node_package so that it can
be used for Riak.  It also, adds FreeBSD package support.