Implement the SubnetId property in the Instance resource

If the SubnetId parameter is given in the template, the handle_create method
in the Instance resource verifies the subnet in quantum and configures the
NetworkInterfaces for the subnet. If no NetworkInterface is specified, a port
is created for the subnet and the nic is configured to use that port.

Change-Id: I5a05cbe0798e6b181bf9dd3b547cda525e18480f
Fixes: bug #1163952
Add new exception for invalid template ref

Hopefully is clearer than a KeyError.

Change-Id: Ib387825396ab0286df00aaff3b1b539cd7fc9a77
Fixes: bug #1178011
Provide example config option for instance_user.

Change-Id: I0782dafd785c21e96e4063ab4604dd3703c7c436
api : Fix template-show partial URL redirect

All other API actions will provide a redirect if you only provide the
stack ID or name (rather than both), the template URL currently doesn't
because the template subpath is missing from the mapper lookup

Fixes bug #1178705

Change-Id: Ib8e8dd7691bc48587c9d91e937ac2c2c35ac3ce6
engine : rename check_active to make it more generic

Rename check_active to check_create_complete, since "active" is
really a detail of Instance state, and so it seems wrong for other
resources which take a long time to create but are not Instance
based (e.g WaitConditions).  This change will also allow us to
align other stack "state check" functions with the state we're
checking for in a consistent way (e.g check_delete_complete etc)

Fixes bug #1178591

Change-Id: I55a824e6ba3de87cedd0b844e7f4e1294917533a
Add a timeout option to the scheduler

Change-Id: Ia796c5027c8faeefb9ddf48d88583d3d7901448d
Merge "api : Fix template-show partial URL redirect"
Merge "Implement the SubnetId property in the Instance resource"
Merge "Provide example config option for instance_user."
Use hostname from env in heat-keystone-setup

Prints a warning if the endpoints are going to be registered as localhost URIs.

Change-Id: I32efcf826f400ca2763cb5758dce02ffdbdb9ae1
Merge "Add new exception for invalid template ref"
Merge "Add a timeout option to the scheduler"