Make options.parse_config_file supporting custom encoding
Assume all config files are encoded in UTF-8
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
Fixes bug disallowing custom-made reason phrase

The send_error method is, I believe, supposed to allow sending an HTTP reason phrase that is not one of the standard ones. This change corrects an apparent bug which made this impossible. With the correction, specifying an 'error' keyword argument to send_error actually sends the specified
reason phrase to the client.
Update gen docs: deemphasize Task, Callback, and Wait.
Add a Highlights section to the 4.0 release notes.
Flatten doc navigation

sphinx_rtd_theme's sidebar will not go deeper than two levels
in the table of contents, so remove the extra index->documentation
indirection.
Reorganize top-level doc navigation.
Drop the 3.2-era "upgrade notes" from the homepage.

The need to install dependencies is well-established by now.
remove dead code

io.BytesIO is available since Python 2.6; Tornado doesn't support Python 2.5, so there won't be ImportError.
Move next.rst to 4.0.0.rst
Set version number to 4.0
Bump master branch version number
Fix example in docs.
Merge branch 'branch4.0'
Merge pull request #1109 from kmike/bytesio

Removed dead "io.BytesIO vs cStringIO.StringIO" code
Merge pull request #1102 from pekrau/master

Add 'reason' kwarg to send_error.
Merge pull request #1086 from likang/master

Make options.parse_config_file supporting custom encoding
Read config file in binary mode instead of try/except TypeError.