The resource repr method should print id

The resource repr method should print id of the resource.

Change-Id: I5d432c70c27d3ad7e29a77d6af7043a7b1d369b6
Fixed a small grammatical mistake in a docstring

Change-Id: I2d7910c1769876de66d216ecea4e5a9581f34e8f
Change transport JSON handling

Transport.request() was using a new attribute in a not-yet-released
version of requests (Response.is_redirect).  It skipped the JSON decode
for redirect responses which is really not what we want anyway.
Instead raise InvalidResponse on JSON decode error when JSON is expected.

All tests needed updating to properly handle the JSON default in Transport.
Is that the right default at the transport level?

The tests for redirects have been duplicated for both JSON and text
responses.

Change-Id: I9dd91ec3d803bf5cc0c12b8f10c1d9b7c6f28dcf
Merge "The resource repr method should print id"
Merge "Change transport JSON handling"