database: Use synchronous=NORMAL.

Closes chfoo/wpull#144
changelog: Update latest to 0.36.3.

[ci skip]
cookie: Rename CookieLimitsPolicy to DeFactoCookiePolicy
cookie: Discard non-ASCII cookie values

Closes chfoo/wpull#145
dns.py: Add missing .async import.
http.connection: Don't use bare except.
decompression: Copy and mod tornado.util.GzipDecompressor

[ci skip]
decompression: Check for gzip using only first byte

Closes chfoo/wpull#155
.http.connection: Don't leak tracebacks across exception contexts

Python 3 seems to want to store the traceback on the exception object.

Side effect is that exceptions thrown by the client no longer contain
their tracebacks.
async: Ensure future is consumed after timeout.
http.connection: Don't early log all exceptions.

Let handlers log exceptions at the expense of missing original traceback
info.
phnatomjs: Copy and use websocket.py

re: chfoo/wpull#142

websocket.py is from
tornadoweb/tornado@1c36307463b1e8affae100bf9386948e6c1b2308
backport.conf: Update for .thirdparty.tornado
requirements.txt: Set tornado>=3.1.1,<5.0
phantomjs: Don't call set_exit_callback

Avoid signal/ioloop/atexit/AttributeError problems.
app_test.py: Use coroutine version of fetch

Avoid tornado getting confused and stopping/starting the ioloop
incorrectly
backport.conf: Add websocket.py to nofix=str
Merge branch 'issue/142-tornado4' into develop
changelog: Add entry: Tornado 4.0 support.

Closes chfoo/wpull#142
changelog: Update latest to 0.36.4

[ci skip]