restapi: add support for import image as template

Change-Id: I5efa82616c3fa3944800542aafce14d550bd74d9
Bug-Url: https://bugzilla.redhat.com/1075682
Signed-off-by: Oved Ourfali <oourfali@redhat.com>