Fix streaming of responses when chunked transfer-encoding isn't used

This fixes response streaming when chunked transfer-encoding isn't
used. A test case was added using Rails SSE support, which required
bumping the bundled Rails 4.0 integration test app up to Rails 4.1.