A test for concurrency when glance uses sleep.

Bug 988099 showed that time.sleep was not being monkey patched
resulting in no concurrency when a sleep was called.  This was
fixed with change I24dfe818.  This commit provides a regression
test to ensure that this behavior remains in place as glance is
developed over time.

Change-Id: Iafbfaa9fd672b5ffd1d19a43dee03dfbfc6d3a2d
Generate notification for cached v2 download

Cached v2 image downloads were not generating notifications.
For now use a 'size_checked_iter' to generate a
notification.

Fix for bug 1132755.

Change-Id: Iec01efb93d7a1853973d355221d06fad9631afd7
Refactor leaky abstractions

Prior to this change, it was common for a domain layer that was wrapping
Image objects returned by methods to neglect to unwrap the objects on
the way in to other methods.

This change fixes that by making proxy base classes less leaky and
inheriting from them in the various domain layers.

Change-Id: I22866cdd800c4c95b43c92762ead3775cffeaa80
Update acls in the domain model

This change brings the domain model up to speed with the v1 stack by
issuing calls to store.set_acls whenever
 - an image is saved into the database (and locations are set)
 - a member is added to an image (and locations are set)

related blueprint glance-api-v2-image-sharing

Change-Id: I45f10752f6c04646b65f86e44b59bdeea534f024
Merge "A test for concurrency when glance uses sleep."
Merge "Generate notification for cached v2 download"
Merge "Update acls in the domain model"