rediscover direct hubs if lost. closes #175
allow hostname:port without scheme for direct hub identification. closes #174. Better handling of poorly formatted direct hub uris.
unreliable fix for determining gateway basenames, closes #143.
Merge pull request #176 from piyushk/aug_30_patches

Aug 30 patches