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

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
XAPI-261/CA-96936: Make himn_only more general

To also manage the case of a localhost server.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>

Conflicts:
	ocaml/xapi/xapi_mgmt_iface.ml

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
XOP-261/CA-96936: Prevent multiple starts of localhost server

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
XOP-261/CA-96936: Issue a warning in case of multiple starts of HIMN server

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
CA-96936/XOP-261: himn interface should not be started if the host is
already listening on ANY.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
XOP-261: Make sure that stunnel listens on the right addresses

This may be "all IP addresses" or only localhost, and IPv4 or IPv6.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
CA-99541: Fix himn when a VM cannot connect to Xapi.

Signed-off-by: Jerome Maloberti <jerome.maloberti@citrix.com>
XOP-261: Simplify management interface management

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
XOP-261: Remove some unused stuff in Xapi_mgmt_iface

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
XOP-261: Only restart stunnel when actually changing which IP xapi is listening on

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
Merge pull request #1076 from robhoes/xop261-cw

CLEARWATER: XOP-261 fixes