CA-89974: Live migrate fails on IPv6-prefering hosts

Make HTTP server understand URLs containing literal IPv6 addresses.
A related commit to xen-api makes the client embed literal IPv6 addresses
in URLs correctly.

 * Parse IPv6 literals wrapped in square brackets in URLs
 * Wrap IPv6 literals in square brackets when creating URLs
 * Move 'Helpers.validate_ip_address' from xapi/helpers.ml in xen-api to stdext/unixext.ml and rename it to 'domain_of_addr'

Signed-off-by: Euan Harris <euan.harris@citrix.com>