Add unit tests for glance/common/client.py

WIP

Fixes bug 1115551

Change-Id: If58b90a189ba675ddc890f339659f5d1b59c33a3