some cleanup of app.js, also added ability to reduce socket.io log level if you have a NODE_ENV environment variable set