patches for logging
HH-28175 force curls to make fresh connections every time
HH-35189 set header length cap to a more appropriate value

Conflicts:
	tornado/web.py
HH-40589 fail-proof headers decoding
HH-46051 fix bug in SimpleCookie