Code to parse communities in config, so that we can check membership.