Added support for running behind a reverse proxy

If set also tries to bind to the port got from the PORT env variable