Feature DNS resolv
This pull request introduces more robust WebSockets connection mechanism. The code is a bit reorganized and support for explicit hostname DNS resolution is added. IPv6 addresses are preferred, tokens are preferred over full grid certificates, JBox is used if available and multiple JCentral hosts are tried on failure, both on IPv6 and IPv4.