Took web socket handling out of app.js