Refactored routes, socket handling, and helper functions out of app.js
Merge pull request #3 from gene-levitzky/issue_2

Refactored routes, socket handling, and helper functions out of app.js