Change Headers.Builder to be final.
Merge pull request #1095 from square/jw/final-headers-builder

Change Headers.Builder to be final.
Don't append to a truncated line in the journal.

Fixes https://github.com/square/okhttp/issues/1099
Merge pull request #1100 from square/jwilson_1023_rebuild

Don't append to a truncated line in the journal.
Log uncaught IOExceptions instead of rethrowing them.

The application layer can handle these with a try/catch block in their
onResponse method if desired.

This prevents a crash for applications that haven't deliberately configured
their uncaught exception handlers.

Closes https://github.com/square/okhttp/issues/1049
Merge pull request #1103 from square/jwilson_1025_log_failures

Log uncaught IOExceptions instead of rethrowing them.
Add an accessor, Call.isCanceled().

Closes https://github.com/square/okhttp/issues/912
Merge pull request #1104 from square/jwilson_1025_isCanceled

Add an accessor, Call.isCanceled().
Don't hold the connection lock when calling receiveRstStream.

Closes https://github.com/square/okhttp/issues/938
Use one logger for all logging.

There was a concurrency problem in CallTest where multiple calls to
Logger.getLogger() didn't return the same instance, leading to failures
in the test.
Merge pull request #1107 from square/jwilson_1026_one_logger

Use one logger for all logging.
Merge pull request #1106 from square/jwilson_1026_fix_concurrency

Don't hold the connection lock when calling receiveRstStream.
Fix a bug where the response cache could be corrupted.

When streaming a response, we copy data from our buffer to the cached file
on disk. Unfortunately we were copying N bytes from the front of the buffer
when we wanted N bytes from the back of the buffer.

Typically these are the same, but certain access patterns can cause them
to be different, corrpting the cached file on disk.

This was uncovered by migrating the cache tests from operating on
HttpURLConnection's API to our new API.
Merge pull request #1102 from square/jwilson_1025_fix_cache_bug

Fix a bug where the response cache could be corrupted.
Fix request cache-control to match spec.

Fixes https://github.com/square/okhttp/issues/1081
Merge pull request #1112 from square/jwilson_1101_cachepolicy

Fix request cache-control to match spec.
Change the cache to have non-shared semantics.

This means we'll cache responses that use an 'Authorization' header. This
means OkHttp's cache shouldn't be used on middleboxes that sit between
user agents and the origin server; in practice this is never a use case
for OkHttp.

Fixes https://github.com/square/okhttp/issues/1035
Merge pull request #1113 from square/jwilson_1101_not_shared

Change the cache to have non-shared semantics.
Don't close the SPDY peer too early.

This was occasionally causing tests to fail because the test was
observing the connection close.
Merge pull request #1116 from square/jwilson_1102_peer_close

Don't close the SPDY peer too early.