core: Fetch unregisterd entity from all the Storage Domains.

Add the ability to fetch an entity from all the
Storage Domains with a stored procedure, by passing null as storage domain id.

This stored procedure should be used for fetching Tempalte with disk copied on several
Storage Domains.

Change-Id: Ia279818045ee3adfcda6383b010ac9f7e283886f
Bug-Url: https://bugzilla.redhat.com/1138136
Signed-off-by: Maor Lipchuk <mlipchuk@redhat.com>
core: Increment DB Generation when image is copied

Increment the DB genereation when a template image is being copied, so
the desctination Storage Domain will be updated with the Template OVF.

Change-Id: Icdd5e02387fe729195bd4b3c502636671a914e5d
Bug-Url: https://bugzilla.redhat.com/1138136
Signed-off-by: Maor Lipchuk <mlipchuk@redhat.com>
core: Add support for copied disk template

Add support for copied disk Template so an unregistered Template can be
registered with its copied disks

Change-Id: Id7514146d26792a361e47d1de820f5233ff9bf40
Bug-Url: https://bugzilla.redhat.com/1138136
Signed-off-by: Maor Lipchuk <mlipchuk@redhat.com>