Update app.js

fix hanging of served files in latest version of node
support for process.env.PORT
Merge pull request #8 from halmayne/master

Update app.js