Segregating this config function here is a leftover from the mean.io stack.  It makes more sense to put this in the 'server.js' itself, and move all configuration centrally to 'package.json'