Remove has_mask(), it will be replaced with better is_cidr()
and is_single() functions.
Remove unit test for has_mask() too.
Add missing IPv6 and protocol-agnostic format validation functions.