This method can serve as a general replacement for methods like FacebookGraphMixin.facebook_request. Update docs for GoogleOAuth2Mixin.get_authenticated_user to indicate that only the tokens are returned, not other user information. Add some basic tests for GoogleOAuth2Mixin. This commit incorporates code from FanFani4 in #1212 and kippandrew in #1454.
This prevents imports from incorrectly being interpreted as relative to the 'tornado package, which would make the standard 'platform' module unimportable. See bdarnell/plop#21
Encourage use of SSLContext on the server side.
This reference is the only thing holding the asynchronous "stack" together in some cases, so making it weak could allow coroutines to be garbage collected while running. This was mainly a problem on Python 3.4, which is much better at garbage collecting generators than older versions. Fixes #1429.
While the existing code handles references like   properly, it doesn't handle the valid case where the number is specified in hex. For example 'foo bar', 'foo bar' and 'foo bar' should all decode to 'foo bar'. The changes in escape.py check for the 'x' and decode appropriately. Also added unit tests for unescaping strings with numeric references.