Validate "tags" parameter.

Also test input validation and host-list filtration.
Remove MemberConfig._tagsMap.

Sort the tags and use binary-search instead of copying them into
an unordered_map and using hashtable lookup.