moving some app.js code to utils.js, adding redis to package.json