Enable https if we are being proxied

A front-end load balancer like Nginx will send the X-Forwarded-Proto to tell the app server that the request is occurring over https.  

http://tools.ietf.org/html/draft-ietf-appsawg-http-forwarded-10