Add in Google OAuth2 support.
Fix up documentation for the class and the Sphinx reference.
Document Windows support (or lack thereof).

Closes #871.
Emphasize and clarify docs for AsyncHTTPClient.close.
Document the fact that the {% module %} directive requires a RequestHandler.

Closes #880.
Add a distinct exception for writing a WebSocket message on a closed connection.

This replaces an AttributeError on NoneType.

Closes #879.
In add_callback, hold the lock while writing to the waker pipe.

This protects against a shutdown race condition seen occasionally in
the ThreadedResolver unittests.  This slightly increases contention
on the callback lock in multi-threaded scenarios, but the cost is
limited by the fact that we only write to the pipe once per IOLoop
iteration.

Closes #875.
Add timeout for requests in SimpleAsyncHTTPClient's queue.

The connect_timeout and request_timeout in HTTPRequest only matter when
the _HTTPConnection get created. In heavy-loadded situation requests in
SimpleAsyncHTTPClient may have already timeouted before they pop out
from queue and get actual processed. This commit adds an timeout
callback for every request appended to SimpleAsyncHTTPClient's request
queue that cannot be processed immediately.
Add a test case for async_timeout in SimpleAsyncHTTPClient.
Add top level LICENSE file

Simlpe commit to add the Apache License, Version 2.0 to the top level
directory.

Signed-off-by: Paul Belanger <paul.belanger@polybeacon.com>
Merge pull request #889 from pabelanger/temp/license

Add top level LICENSE file
Check for empty strings and zero bytes in is_valid_ip.

Closes #893.
Bump verison number to 3.2.dev2
Rename the object param in GoogleOAuth2Mixin from overwrites to extra_params.
Stop making an absolute URL for GoogleOAuth2Mixin
Fix exception in StaticFileHandler when range requested is larger than file.
RequestHandler sets its close callback on the HTTPConnection, not the IOStream.

Fixes a bug in which close callbacks would never be called for subsequent
requests on a reused connection.
Add 3.1.1 release notes.
Set version number to 3.1.1
Merge branch 'branch3.1'

Conflicts:
	docs/releases.rst
	setup.py
	tornado/__init__.py