[refactor] for performance change the signature of http_parse_url
add function for concatenating string
rewrite location header from upstream (and add unit test)
add end-to-end test for `location:` rewrite
[http1] set `scheme` field to HTTPS if the connection is using TLS
rewrite Location: header from upstream (merge branch 'kazuho/issues/65', close #65)