MidoNet CLI support for license management

Adds the following object types to the CLI:
- License to show the information for a license bean
- LicenseStatus to show the information for the license
  status

Adds the following commands to the CLI:
- Install to allow the installation of a license object
  from a file
- Status to show the status of an object type, such as
  a license

Includes support for a POST method to the MidoNet API,
where the request media type is binary data (octet stream).

Signed-off-by: Alex Bikfalvi <alex.bikfalvi@midokura.com>
Update the media type for license management

Signed-off-by: Alex Bikfalvi <alex.bikfalvi@midokura.com>
Removes the Status command for license mgmt

This patch substitues the previous Status command with the
the Show command in order to display the license status. This
changes the syntax of the Show command to allow a pattern
show <TYPE> where type is a CollectionByType, and the command
calls the collection getter without any parameters. With this
patch, the command for checking the license status becomes:

show license_status

This patch also fixes a bug in the Install command, where
the command would always return a License object, regardless
of the collection type used in the command.

Signed-off-by: Alex Bikfalvi <alex.bikfalvi@midokura.com>
Merge pull request #182 from alexbikfalvi/master

MidoNet CLI support for license management
Introduce cleart command

This patch adds "cleart" command to the top level commands. "cleart"
cleart the current tenant ID pushing None to the stack of the tenant
ID. You can pop the previous tenant ID with "popt" as well as "pusht".

This fixes MN-2384.

Signed-off-by: Taku Fukushima <tfukushima@midokura.com>