Tweak to add support for load balanced set ups

Added support for load balancers that send along `https` status via the `HTTP_X_FORWARDED_PROTO` header
@see http://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Common_non-standard_request_headers