Check subdomain name validity for instance factories.
Add extra asserts for when calling the instance factory methods from the Django shell and there's no previous validation step involved. This prevents domain names that are duplicates and only differ in case, or domains with invalid characters in them which will cause problems later in provisioning.