Add function to validate top level domains
Add function to validate top level domains

Introduce new type for TLDs but mainly use it to preserve behaviour of is_network_name.

alvarosimon/template-library-core,apdibbo/template-library-core,quattor/template-library-core,jrha/template-library-core,jouvin/template-library-core