Add support for Heroku

Heroku seems to get the port configuration from the environment. This way we get it form the environment if available.