hub_discovery and gateway are now synchronized in what gateways have bee...

...n discovered and registered by the gateway. closes #179