setup the app.js for socket io and delegate routing to routes/main.js