Node module to negociate master/slave roles to nodes process