allow configuring the sniffEndpoint via config.sniffEndpoint
use lodash-node rather than vanilla lodash so that lodash doesn't attach to require js even when it's available.