Added basic support for service flags and integrated into gossip and registry.