restructured much of the code in app.js for clarity as well as moved all socket handling function into their own file, socketHandler.js
Merge branch 'master' of https://github.com/Sloth6/Beacon