CA-74544: Associate a username with the sessions xapi passes to SM backends.

This will appear in the audit log. Formatting is consistent with the
"__dom0__vmpr" username associated with the session passed to the VMPR
plugin.

Signed-off-by: John Else <john.else@citrix.com>
XOP-261: Revert.

    XOP-261: Reinstate the server on 127.0.0.1 when no management
    interface is defined

    XOP-261/CA-96936: Remove Xapi_mgmt_iface.rebind
    Since the management interface is listening in IPv6 automatically if
    available.

    XAPI-261/CA-96936: Make himn_only more general
    To also manage the case of a localhost server.

    XOP-261/CA-96936: Prevent multiple starts of localhost server

    XOP-261/CA-96936: Issue a warning in case of multiple starts of HIMN server

Reverted since it broke TC-16120.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
Merge pull request #1008 from jeromemaloberti/XOP-261-revert

XOP-261: Revert.
CA-98528: Improve the CLI error message when setting vmpp params

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #1009 from jonludlam/CA-98528

CA-98528: Improve the CLI error message when setting vmpp params
CA-96893: Remove metadata from xenopsd after a suspend.

Previously metadata was only removed after a shutdown.

Signed-off-by: John Else <john.else@citrix.com>
CA-96893: VM.remove now also removes the VmExtra persistent data.

Signed-off-by: John Else <john.else@citrix.com>
CA-97297: ErrorMsg - Cannot remove parameters from read-only map
Create new module: Storage_utils

Signed-off-by: John Else <john.else@citrix.com>
CA-98492: Fix for VDI.create for certain VDI types

SM was using a Record_utils function to determine the type of new VDIs
and defaulting to the "user" type, which meant that redo_log and HA
statefile VDIs would erroneously be created as "user" VDIs.

Signed-off-by: John Else <john.else@citrix.com>
CA-98936: Stop xapi from creating files in /tmp every time it gets an update from xenopsd

Signed-off-by: John Else <john.else@citrix.com>
Merge pull request #1014 from johnelse/ca-98492

CA-98492: Fix for VDI.create for certain VDI types
Merge pull request #1016 from johnelse/ca-98936

CA-98936: Stop xapi from creating files in /tmp every time it gets an update from xenopsd
Merge pull request #1012 from siddharthv/CA-97297

CA-97297: ErrorMsg - Cannot remove parameters from read-only map
Merge pull request #1011 from johnelse/ca-96893

CA-96893: Remove xenopsd VmExtra metadata from filesystem after suspend and migrate.
Merge pull request #1005 from johnelse/ca-74544

CA-74544: Associate a username with the sessions xapi passes to SM backends.