added support for heroku web apps

read the $PORT environment variable and use it when deployed on heroku