image-delete fires multiple queries to delete its child entries

1. Changed individual query calls for soft-deleting the image's
   child entries to one db query call for all child entries of a
   given type.
2. Added a fix to simple db's 'image_destroy' api to clear
   the location entries.

Fixes bug 1201758

Change-Id: Ib673de5460d59ea3af74553048ffcf74dccbdc36
Merge "image-delete fires multiple queries to delete its child entries"
Rule parser for property protections

This patch introduces the way protected properties
will be configured and parsed.

Related to api-v2-property-protection

Change-Id: I3d24cacccf3f51b07a4090b8a5db1f2451090762
Add Extra Properties class in domain layer

Add a class for extra properties in domain layer.
This will be used in auth layer to inherit from and add
protections

Related to api-v2-property-protection

Change-Id: I56d1b0ca70ff1cde2ca1ea18bb44ebb29d8d1b03