Fix 'glance-cache-manage -h' default interpolation

Some options were showing up as %(default)s when running
"glance-cache-manage -h".

Fixes bug 1197472

Change-Id: I1c7586cbc52445e3bdca28a71378f40ecb5b07a9
Sync gettextutils from oslo

Bring in the necessary code for handling Glance translations

Partially implements bp user-locale-api

Change-Id: I5bc88e018c915d177560bcd42bd5733675e59516
Adding a policy layer for locations APIs

Added a policy layer for the locations APIs of the domain model to
enable the policy checks for image locations changing.

Implements bp: locations-policy

Change-Id: I702723f060f1cc717aca2d99e32d886666c165f8
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Deleting image that is uploading leaves data

Need to clean up the backing store if an image is deleted in the middle of an upload.

bug 1176177

Change-Id: I77722fd0aaf5ea8a06b4303e2b0cb1ad2929b0f0
DB Driver for the Registry Service

This patch adds a database driver that talks to a remote registry
service, which talks directly to a database back-end. The registry
service implements all the database API public functions that are
actually used from outside the API.

In order to test this patch correctly, it was necessary to add an
auth_token to each context used in the base tests and update that token
were needed.

NOTE: This patch adds tests for the above said driver but, it doesn't
add Visibility tests. The reason is that those tests are meant for
actual database back-ends. Given the "proxy" nature of this driver and
the fact that it doesn't do anything on the data returned by the remote
registry service, it isn't worth adding those tests. However, this
review does have support for DriverTests and implements each one of
them.

Implements blueprint registry-db-driver

Change-Id: I60f8e25c406c8e62b343267ba00f23299b19d4e5
Merge "Deleting image that is uploading leaves data"
Merge "Fix 'glance-cache-manage -h' default interpolation"
Merge "Sync gettextutils from oslo"
Merge "DB Driver for the Registry Service"
Merge "Adding a policy layer for locations APIs"