removed node's http createServer method, and restructured some routes
minor formatting
minor refactoring