Add ip_mode to oc_chef_wm and normalize host

Ensure that the correct type of ip address (ipv4 or ipv6) will be returned on
start. Also, guard against ipv6 literals in a ldap host.