cleaning up code to be more javascript like
adding index.js and turned server.js into node module
adding route handling
added some parsing