Allow template directives to span multiple lines
Log "stacktrace" of templace source lines when an exception is raised for more convenient debugging
Add {# ... #} construct to comment out entire sections
Print only the template trace of the bottommost UI module call, move testing.LogHandler to util.LogCaptureHandler, and rename testing.LogTestCase to testing.LogCaptureTestCase
handle HTTP 303 redirects correctly

see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.3.4

In response to a 303 the client SHOULD make a GET to the Location,
was using the original method.
remove content headers for 303 redirect

when doing a GET request for a 303 redirect clear the Content-Length
and Content-Type headers, they are set during the initial POST.
Edited tornado/iostream.py via GitHub
Errors from socket.connect() should be treated the same way as async failures.

On freebsd non-blocking connect() may return certain errors (such as
ECONNREFUSED from localhost) immediately instead of returning EINPROGRESS
and then giving the error later.

Also improve the test for ipv6 compatibility, since freebsd returns a different
error than other platforms when ipv6 is not available.
Merge pull request #372 from WGH-/patch-1

tornado/iostream.py - long type in read_bytes
Added support for subprotocols.
Always advance _next_timeout in PeriodicCallback._schedule_next().

On fast machines (and platforms where time.time() has low resolution),
it's possible to make it through an IOLoop iteration with time.time()
unchanged, which would cause the callback to be run multiple times
regardless of the requested interval.

Closes #366.
Add release notes for 2.1.1
Set version number to 2.1.1
Bump version number in the master branch
Add configs for testing on Vagrant-managed VMs.
allows the TwitterMixin define the callback_uri, that solves issue #377
Sigh... More websocket protocol changes.

Closes #385.
Fix hang on HEAD requests and on 204/304 responses with no content-length.

Closes #386.
Clear Content-Encoding and Transfer-Encoding

Also better test names.
Fix zero-byte writes in IOStream.

Previously zero-byte writes would cause the CPU to run at 100% and
would never call their callback (if any).