Fixes COMETD-462 (Support different server URLs for different transports).
Code cleanups.
Fixes COMETD-467 (WebSocket client transport disabled in case of UnresolvedAddressException).
Merged branch '2.7.x' into 'master'.