Updated_at not being passed to db in image create

This results in fragile tests in which updated_at and
created_at are not equal

Fixes bug 1123515

Change-Id: Ibc29fef092d4d09473abb8818bea53658afcd5bf
Add migration.py based on the one in nova.

This adds a migration.py file for setup and migration commands
similar to the file in nova. This was needed for porting the
new test migration framework.

Change-Id: Ic4d3a5e471b5fb8ee38b22b97df2e99b9fb649a1
Fix issues with migration 012

This commit fixes 3 issues with migration 012:

First for the sqlite downgrade case the schema was being updated
before the data, which made it impossible to be applied. This
reverses the order of those calls correcting the issue.

Second, when the generate_uuid method was moved to one synced
from oslo the import was never updated in migration 012 which
was using generate_uuid(). This commit updates the imports and
uses of generate_uuid() to use the method in oslo.

Thirdly, this patch fixed the downgrade path to work for an image
table with more than one row.

Change-Id: Ib0d3d67e924748863dfdf8eb9e3257ec108ecf68
Adding image members in glance v2 api

Adding image members to glance v2 api. A user can create image member,
list image members and delete image member for a given image.
Also adds the necessary authorization.

Related to bp glance-api-v2-image-sharing

Change-Id: Ifc0607d693f7b0218ebd7fc4824a64e9eba995b3
Add status column to image_members

Related to bp glance-api-v2-image-sharing

Change-Id: Id8896f9dcb717ab8a466829b3b1cd9fde4b67a36
Merge "Add migration.py based on the one in nova."
Merge "Fix issues with migration 012"
Merge "Updated_at not being passed to db in image create"
Merge "Adding image members in glance v2 api"
Merge "Add status column to image_members"
Allowing member to set status of image membership

Only the owner of an image can add members to the image.
By default the status of the image member is requested.
The member can change the status of the image membership
to accepted or rejected. This is done to prevent spamming
the user's image list. A member cannot see the other members
of the image.

Related to bp glance-api-v2-image-sharing

Change-Id: I0d0deba4b0df52b2f8d105b779fb7de746229d3a
Updates OpenStack LLC with OpenStack Foundation

Patchset addresses reviewer's comments, rebase against master,
and follows new guidance from Foundation:
http://wiki.openstack.org/Documentation/Copyright

Change-Id: I94367461505778973528eb8835d991f4fb796dab
Add migration to quote encrypted image location urls

Migration 015_quote_swift_credentials.py failed to take into account
encrypted location values. This patch adds a similar migration
that if the value is encrypted then:
1. Decrypts the value
2. Quotes the url string
3. Encrypts the value
4. Inserts back into DB

fixes bug 1081043

Change-Id: Iadfe5f5082b3932307eef8e76571e36c6ff9fce7
Merge "Updates OpenStack LLC with OpenStack Foundation"
Merge "Allowing member to set status of image membership"
Merge "Add migration to quote encrypted image location urls"