Cleaned up app.js, created socketHelper class to move all helper methods there out of app.js (or socket.js).