Fixed support for Amazon ELB with HTTPS offloading

If Amazon ELB offloads HTTPS, a new header is added for HTTP_X_FORWARDED_PORT. This header contains the port number used to connect to the ELB by the client.
Merge pull request #370 from travisaustin/amazon-elb-https

Fixed support for Amazon ELB with HTTPS offloading