It is a config file type
Implement domain_type() and domain_common

base_domain_type plus rules that are common to pretty much all domains
move to related
Make libraries optional
I do not do that getattr with list perms any more