Added support for X-Forwarded-Proto https headers.

When https requests are transferred from AWS ELB (load balancers) they
are returned as http with the original scheme encapsulated in a
X-Forwarded-Proto headers. I have added support for the
X-Forwarded-Proto header and for both https schemes together.