Added RestTemplate error handler and logging, because Google APIs send informative JSON in response.
Builds URIs rather than Strings so they don't get doubly-encoded when executed.
Fixed tests.