Doc updates for py25 removal
Replace (most) calls to tornado.util.b() with byte literals.

sed -E -e "s/b\('([^']*)'\)/b'\1'/g" -i '' tornado/*.py
sed -E -e 's/b\("([^"]*)"\)/b"\1"/g' -i '' tornado/*.py
Remove the remaining traces of tornado.util.b.
Remove conditional imports for py25.

ssl, json, and multiprocessing are now ubiquitous.

Also misc pyflakes cleanups (unused imports)
Update autopep8 to 0.8.5 and run it.
Use real class decorators and remove other py25-era workarounds
No more  need to check for 'ssl is None' or 'multiprocessing is None'
Save the address family when an HTTPConnection is created.

Previously, if a non-IP socket was closed prematurely,
we would still try to reference stream.socket.family to decide
what format self.address was in, resulting in an uncaught exception.

Closes #656.
web_test's wsgi_safe can be a class decorator too.
Fix memory leak with gen.engine, RequestHandler.flush, and closed connections.

This was unfortunately difficult to reproduce in a unit test, even though
the test program attached to bug 660 easily reproduces it.

Closes #660.
Fix some iter{items,keys,values} calls that slipped through the cracks.

Add tests for the functions that were thereby revealed to have none.
Make autoreload close the IOLoop through the standard interface.

This makes it compatible with TwistedIOLoop.
Fix typos in TwistedIOLoop that always sent both read and write events to all handlers.
Fix s3server.py to stop truncating downloads of images and other non-text files
Merge pull request #669 from mleonhard/master

Fix s3server.py to stop truncating downloads of images and other non-text files
Move TCPServer to its own module.

It's backwards-incompatible for people who used it directly, but that's
what 3.0 is for. ;)  TCPServer made it impossible to import netutil
from iostream due to cyclic imports, which seems backwards.
On py32+, methods that take ssl_options now also accept SSLContext objects.

This is necessary to support SNI and NPN.
Add server_hostname to IOStream.connect, for SNI and cert verification

SSL hostname verification now happens in SSLIOStream instead of
simple_httpclient (and supporting code has moved to netutil).