Safer nginx config (issue #404).
Merge pull request #409 from aartur/master

Patch for nginx config change
Fixed output of content_length in access log.
Check Content-Length header.

For not chunked request do validation Content-Length header and return 400 if invalid.
Change base-classes for NoMoreData, ChunkMissingTerminator and InvalidChunkSize.

If remote client send invalid data in request with "Transfer-Encoding:chunked" gunicorn can raised some exceptions (see http.body.ChunkedReader) as NoMoreData, ChunkMissingTerminator, InvalidChunkSize.

User application shouldn't know about specific gunicorn exceptions and must catch standard IOError if want.

Example:

    def app(env, start_response):

        body = env["wsgi.input"]

        chunk_size = 1024

        while True:
            try:
                chunk = body.read(chunk_size)
            except IOError:
                .. correct action for error

            if not chunk:
                break

            .. do somethink with chunk
Set timeout for client socket (slow client DoS).
Implantation proxy protocol
support file reopening & reexec for all loggers
initialize the logging config file with defaults.

Set correct default to the logging config file so we are able to use our
own loggers. While I'm here fix the example.
Callable hooks for paster config.
Workers won't be killed if timeout set to 0
update PPA link
add x-forwarded-proto as secure scheme default

Heroku uses this and it's the only one mentioned in Wikipedia's
list of common non-standard headers.

http://en.wikipedia.org/wiki/List_of_HTTP_header_fields
remove defunct email address from setup.cfg

I don't have an rpm machine handy anymore. I suspect this should
always have been filled in by the rpmbuild environment of the user
running the script, anyway, and I should not have been listed here.
Rename doc to docs.
Remove unneeded files and dir.
Initial sphinx doc structure.
Move files for sphinx.
Consistent formatting and some addditions.

Ensures sphinx will generate consistent html headings. Some
addition of header text.
Rename to use some part of it as sphinx ext.