Sync cliutils from oslo

Latest commit in oslo: 2eab986ef3c43f8d1e25065e3cbc1307860c25c7

Related to blueprint common-client-library-2

Change-Id: I5671f09575d82e09db55da137edb970dfbd2d938
Updated from global requirements

Change-Id: Iff8409f5b9b1fc8c92e2d9d324727b95d172e56a
Fix docstring for client.get_client()

Fix a misspelled word and correct the description for parameter
'api_version'; the only valid value is '1' (because we only have v1).

Change-Id: I51e23f783de5000df96dca26cd87244c3733d359
Merge "Updated from global requirements"
Documentation for contributors

Adds documentation for contributors, which describes how to
get started. It mentions licence agreement, launchpad ID, and
includes links to project-related information.

Change-Id: I47423c9f2cdfd708c8cb45d4284c5af16d598153
Partial-Bug: #1300990
Merge "Fix docstring for client.get_client()"
Updated from global requirements

Change-Id: I45ae706d333f7448d52a0c1218696a94cffab8f1
Merge "Documentation for contributors"
Merge "Sync cliutils from oslo"
Merge "Updated from global requirements"
Add documentation for ironic CLI

Adds a short description about how to get started with the
ironic CLI.

Change-Id: I86247c36d9c3ce482dde009bef7e59fcdc493c64
Partial-Bug: #1300990
Remove py3kcompat module

Remove use of py3kcompat module, which has been removed from oslo-incubator.
Replace it with six, which is already in the dependencies.

Update common apiclient from Oslo for that. I've updated
to oslo-incubator of commit 04a1abe59ac39890f57d2eed57d3d1b12bb5d757

List of recent changes:

04a1abe Revert "Removed set_loaded() method from Resource class"
86707cd Remove None for dict.get()
6650435 Fix usage of dict.keys in apiclient.exceptions
35dc1d7 py3kcompat: remove

Change-Id: Iab72688ea3ae7ff4c9c707b7939e1a12ff1a72b2
Adds documentation for ironicclient API

Adds some documentation on how to use the ironicclient API. Describes how
to get a client object and has examples of a few ironic operations.
The ironicclient modules are listed.

Change-Id: Ic7c739fb5722b40c308b90c27178d937cad41028
Partial-Bug: #1300990
node-get-console incorporate the changes in API

As of commit I6c5818052e18ddfbcc148a18976ba5873b644039 to ironic
changed the return value for the console GET api from string to
a JSON object, this patch made the corresponding changes in the
node-get-console command.

Change-Id: I4d12a966e24a3ac04a0dfbb7d1fa489b69201749
Closes-Bug: 1307555
Sync latest code and reuse exceptions from oslo

Module `ironicclient.exc` contains exceptions which equal to exceptions
from oslo common code.
This patch:
- sync latest code of `apiclient.exceptions`(hash of last commit in oslo
related to apiclient.exceptions: 3570f44d5ccf52c59cc586bed1446b874fc3c07c)
- reuses exceptions from common code
- removes needless exceptions from `ironicclient.exc`

Related to bp common-client-library-2

Change-Id: I784007f36dd6a63fc4c77e0d0f0f000e05eb792f
Merge "Remove py3kcompat module"
Merge "Sync latest code and reuse exceptions from oslo"
Updated from global requirements

Change-Id: I7b6141b9d0cfea247ec5642b37dc1a45f3abfbb0
Reuse module `cliutils` from common code

This patch:
- removes unused method `common.utils:pretty_choice_list`;
- removes unused method `common.utils:find_resource`;
- removes unused method `common.utils:exit`;
- adds alias to `cliutils:args` in `common.utils`;
- adds alias to `cliutils:env` in `common.utils`;
- reuses method `print_list` from `cliutils`;
- reuses method `print_dict` from `cliutils`.

Related to blueprint common-client-library-2

Change-Id: I42318c6947509d4338309d03e722d822182bbc5d
Updated from global requirements

Change-Id: I00470eca0b3b4eb788e4184d8a37cac09bcd1260