Fix validate failed with an image_name in uuid format

We should support to get the image_id by an image_name which is in uuid
format.

Change-Id: I471ee57ea55f990f852398a43762899dbc3d8692
Closes-Bug: #1312523
Add a Nova Flavor resource.

This will allow using more fine-grained specification of computational
resources (RAM, CPU, disk, etc.).

A nova flavor resource has the following format:

  heat_template_version: 2013-05-23
  description:  Heat Flavor creation example
    resources:
      test_flavor:
        type: OS::Nova::Flavor
        properties:
          ram: 1024
          vcpus: 1
          disk: 20
          swap: 2

Change-Id: I79812f0ef0d0dc616ccb3361e9b5864faa877df1
Implements: blueprint dynamic-flavors
SoftwareDeployments tolerate string zero status code

When evaluating the status code, we treat 0 as OK, but '0' as
a failure, which is inconvenient when returning the status via
shell scripts, so tolerate either format.

Change-Id: Iddac03e38ae87b1103757531ee0247929f9584ac
Merge "Add a Nova Flavor resource."
Merge "Fix validate failed with an image_name in uuid format"
Merge "SoftwareDeployments tolerate string zero status code"