Release note updates
Set version number to 3.1b1
Catch StreamClosedErrors in WebSocketHandler and abort.

When the stream is closed with buffered data, the close callback won't
be run until all buffered data is consumed, but any attempt to write
to the stream will fail, as will reading past the end of the buffer.
This requires a try/except around each read or write, analogous to the
one introduced in HTTPServer in commit 3258726f.

Closes #604.
Closes #661.
Document websocket error handling change (and StreamClosedError).
update comparison to follow pep8
Merge pull request #819 from dominiqueplante/master

update comparison check to follow PEP8
Fix bind_sockets if OS does not support IPv6
Doc updates from Zhigang Wang
Merge pull request #823 from schlamar/bind-sockets-ipv6

Fix bind_sockets if OS does not support IPv6
Set CLOEXEC on subprocess pipe endpoints so they are not inherited by the child.

This is what the subprocess module does when it creates pipes, and is
necessary so that a close of the writing side of the stdin pipe will
be recognized by the child process.
Fix default IOLoop in Subprocess.

Exit callbacks would fail for Subprocesses that did not explicitly
set an IOLoop.
Add another small encoding test for xhtml_escape.
Remove obsolete comment about twitter's support for callback urls.
Release note updates.
Move next release notes to v3.1.
Set version to 3.1.
WSGI specification requires that close() be called on iterable no matter what happens.
Set master branch version to 3.2.dev1
Merge pull request #824 from GrahamDumpleton/master

WSGI specification requires that close() be called on iterable no matter what happens.
Fix run_with_stack_context test.

This test would never fail because it didn't check the result of its
Future.  Thanks to Florian Ludwig for pointing this out.