Refactored logic out of server.js and placed it into the handler along with other server logic.
Merge pull request #1 from jontewks/production

Refactored logic out of server.js and placed it into the handler along w...