Fix cookie propagation from HTTP to HTTPS, close #899
Better HTTP logging