Generate a template from a resource

Setup the command line options and calls for generating
a template from an installed resource.

blueprint resource-template

Change-Id: If533bd90b1ec73bbe2603b55a0a7621879d355ec
Merge "Generate a template from a resource"
Do not obscure Unauthorized error messages

All Unauthorized exceptions are currently trapped and
the following message is printed:
    Invalid OpenStack Identity credentials.

This is unhelpful now that heat-api is providing structured
errors with (sometimes) helpful context for authorization failures.

This change removes this error trapping and prints the intended
error message.

Change-Id: Ibd943deb1f365e5f212225be1e675beb14accf97
Apply OS_REGION_NAME for endpoint selection

Even if we got OS_REGION_NAME on CLI, the value is not used.
In this commit, we apply OS_REGION_NAME for endpoint
selection.

Fixes bug 1215588

Change-Id: Ib2e2f655282b2730a9a3b7337e56993253972ce1
Add X-Region-Name parameter in HTTP request

In order to specify region_name, we let client send
the OS_REGION_NAME in header file

Fixes bug 1213291

Change-Id: Ie44f700ca7e412c2504b6b8faac3fd65d4fd744b
Merge "Do not obscure Unauthorized error messages"
Rename event logical_resource_id to resource_name

Required by Heat change (https://review.openstack.org/#/c/43391/)

fixe bug #1216903

Change-Id: I77201348df401d5bafc7109bb4d032dd071468d8
Merge "Add X-Region-Name parameter in HTTP request"