Convert header_lines into a map

Also, add a add_header_line() to http_req_t
Update content-length only if already present
Use auto for type inference
Add only the first unique value into query_params
Add header only if they're not present
Merge pull request #2818 from gsathya/header_lines

Convert header_lines into a map