Adds Glance API v2 support.

Change-Id: Ib0325e62a7e50aa94e852a73f9a2cb95daa8d5f6