use X-Forwarded-Proto header for protocol detection

if kibana-proxy runs behind reverse proxy (e.g. Amazon ELB or Apache + Passenger), always set redirect url with "http://".
this patch fixes this problem, use "X-Forwarded-Proto" header for detection.