Guard against invalid name value block headers.

If a badly behaved server sends us a negative number
of name value blocks, we should throw an IOException and
not a RTE (which will be thrown when we try to construct an
ArrayList with a negative size).
Merge branch 'master' of https://github.com/narayank/okhttp
Merge pull request #127 from narayank/master

Guard against invalid name value block headers.
Move library into a module. Introduce sample module with simple GitHub client.
Merge pull request #129 from square/jw/modules

Move library into a module. Introduce sample module with simple GitHub c...
Add Apache HttpClient implementation which maps to OkHttp.

Refs #17.
Merge pull request #130 from square/jw/apache

Add Apache HttpClient implementation which maps to OkHttp.
Provide a non-internal API to the response cache.

Currently this is roughed in. Before I can close issue 131
I need to clean up the docs and verify that we aren't leaking
public APIs.

https://github.com/square/okhttp/issues/131
Merge pull request #132 from square/jwilson/public_api_for_cache

Provide a non-internal API to the response cache.
Tidy the public API for HttpResponseCache.

This moves the special internal-only methods into a new interface,
OkHttpResponseCache. I jump through some hoops to expose only the
java.net.ResponseCache interface in the API.
Merge pull request #133 from square/jwilson/cache_api

Tidy the public API for HttpResponseCache.
Use the latest DiskLruCache in OkHttp.
Merge pull request #134 from square/jwilson/latest_disklrucache

Use the latest DiskLruCache in OkHttp.
Track DiskLruCache.flush change.

Current DiskLruCache version is ebbb058e8226d2c5531bb2d66ff4d41d6edd366c
Merge pull request #135 from square/jwilson/flush

Track DiskLruCache.flush change.
Don't use APIs that Froyo doesn't have.
Merge pull request #136 from square/jwilson/froyo

Don't use APIs that Froyo doesn't have.
FaultRecoveringOutputStream.

This is the first step in a change that'll permit the underlying
socket stream to change out-from-under-you while you're uploading
POST data to a server.

It'll recover from failures writing the request body that occur
within the first N bytes, where N will be determined by the number
of bytes that can be written without positive confirmation.

See https://github.com/square/okhttp/issues/137
Merge pull request #138 from square/jwilson/recoverystream

FaultRecoveringOutputStream.
Allow empty header values

This tracks an AOSP change by Brian Carlstrom.
Change-Id: I78bb07a93d527eda6aaee6e986be39a68e0a02f4