Allow flavor and image to be specified by name and not only uuid.

Change-Id: Ic29b40a43177a0d70a49c7abdfc10c204c0eccf9