Use "Accept: application/json" header instead of appending ".json" to sp...

Use "Accept: application/json" header instead of appending ".json" to specify that JSON is requested. Fixes almost-certainly-buggy code in client.py method _resolve_resource_name().

Fix bug which would not allow a full url with a query string to be used successfully with Client.get().