Retry request on OutOfMemoryError.

Rely on the underlying disk cache to hopefully prevent hitting the network twice.
Merge pull request #58 from square/jw/oom-retry

Retry request on OutOfMemoryError.
Checkstyle fixes.
merged from upstream