Improve curl_httpclient so it supports custom methods with payload.
Before this, no custom method (e.g. PATCH) added body to the CURL request.
Merge branch 'master' of github.com:tatiana/tornado
make IOCMD_RESTARTREAD available for PUT requests
Merge pull request #1116 from homm/curl-put-redirects

make IOCMD_RESTARTREAD available for PUT requests
Fall back to pure-python mode on any exception during the build.

Stop the futile process of trying to enumerate which kinds of exceptions
distutils may throw (the latest potential addition: ValueError).

Closes #1115.
Add test for curl_httpclient ioctl change.
Add a default value to a getaddr() call in HTTPServerRequest.

Closes #1118.
Add missing return statements to call_at and call_later.

Closes #1119.
Disable test_post_307 due to a libcurl bug that manifests with TwistedIOLoop on linux.
Typing error
Merge pull request #1120 from Mouchh/patch-1

Typing error
Merge branch 'branch4.0'
Refactor Resolver error tests to mock getaddrinfo.

This appears to be necessary in a vagrant ubuntu/trusty64 VM,
where the resolver takes over 5 seconds before returning an error.
Add an ubuntu 14.04 vagrant config; drop 12.10.
Merge branch 'master' of github.com:tornadoweb/tornado
Refactor: simplify patch test according to @bdarnell recommendations at #1090
Move patch test to httpclient_test, according to @bdarnell recommendation
using httpclient_test.py instead of curl_httpclient_test.py so simple_httpclient_test.py is benefit from it as well
#1090
Fix tests so they are compatible with python 3.x
Added a test for extra CRLF lines in keep-alive connections
Support for non-RFC compliant header prefixes

When using keep-alive connections, some HTTP implementations insert unexpected and extra CRLF tokens between each connection, which can result in the next request being prefixed with a CRLF.

Some other client/server implementations are tollerant of this, and for example this bug doesn't show up when using the Go net/http library.