json name usage

* 'json' (dict) renamed to 'data' to avoid confusion
* image meta requests really does xml request
* add logging to the token client

Change-Id: Ib596fb4f761fec993b3f7de9e723a154e748c958
Merge "json name usage"