Fix filter_properties of unshelve API

When unshelving a shelved server, nova-scheduler fails because nova-conductor
of current unshelve feature passes an empty list as filter_properties, and
nova-scheduler handles it as a dict.

To fix the problem, this patch changes the filter_properties to an empty dict.

Closes-Bug: #1233563

Change-Id: I2c7a2a743a8142af0be0a182067f3295980aa997
Add V3 API samples for consoles

Partially implements blueprint v3-api-unittests

Change-Id: I84ee6ca7d7c7113e97b7eadde6eeac104bffb6ff
Merge "Fix filter_properties of unshelve API"
xenapi: refactor: move UpdateGlanceImage to common

During the review of https://review.openstack.org/41651 it was
recommended to move UpdateGlanceImage to a common library. A bug was
filed to deal with the refactors. This change fixes the first part.

Fixes bug 1220596

Change-Id: I95ae89525b7e6768c5a70364945d5a10cb906d88
xenapi: refactor: move RawTGZImage to common

During the review of https://review.openstack.org/40909 it was
requested, that the RawTGZImage class should be moved to a common
territory, so that others can re-use it later.

Fixes bug 1220596

Change-Id: I0f186c2f81edbd546c0a24d66e4b9c1626373b12
XenAPI: Fix translation of metadetails in aggregates

https://review.openstack.org/#/c/43157/ added a translation from the sqlalchemy model to
the instance object replacing metadetails with metadata.

This added more traces in general for XenAPI (when we queried whether we were using
aggregates) and actually broke the host aggregate functionality

Change-Id: I87195753931945b6e1ecf75bc81575a6fa03068e
Closes-bug: 1232179
xenapi: post install scriptlet to rpm

A post install script that creates the /images directory on xenserver,
and sets up the trust relationship.

Change-Id: Id57e3a3ab2782550468c6aa4c01059ceb7cc81ab