When handling HTTP requests with chunked transfer encoding, the 'Transfer-Encoding' header is no longer passed to the application.

This is because the web server already buffers and dechunks the request body.
Merge pull request #97 from flygoast/master

Fixed possible hang when reload or reopen log files
Document the fix for the possible hang when reloading Nginx.
Upgrade preferred Nginx version to 1.4.6
Fix compilation problem in Nginx module
Update Nginx source tarball checksum and upgrade PCRE to 8.34
Fix restoring the terminal state in JRuby, after displaying a terminal menu choice.
Fix compilation of ruby_native_support on Ruby 1.9.0 and Ruby 1.9.1.
Fix closeAllFileDescriptors() on OS X 10.9
Structure RequestHandlerTest in a way that its test names can be easily queried, and add a tool for doing that.
Add unit tests for TeeInput
Fix environment names in error_layout. Fixes issue #1058
Allow switching TerminalMenuChoice to a plain text mode by pressing '!'.

Fixes issue #1066.
Fixed a crash that could happen if the client disconnects while a chunked response is being sent.

Fixes issue #1062.
Remove unnecessary compilation flags when compiling the Apache module. Hopefully fixes issue #1043.
Make TeeInput read no more data than is allowed by the HTTP headers.

In the future, this change will be used as a building block for implementing
proper EOF simulation on rack.input. The current implementation on
UnseekableSocket is not entirely correct, as documented here:
https://groups.google.com/forum/#!msg/phusion-passenger/bfY4EQguW5o/V4YxH_Wd_qYJ
Treat non-GET/HEAD methods without Content-Length and Transfer-Encoding as having no request body.

While we're at it, clearly define the various request body handling strategies.
Bump version to 4.0.39
Allow dumping live backtraces of Python apps through the 'SIGABRT' signal.
Fixed compilation of native_support on Rubinius