Resolve #3132453 "Prevent registration with"
Adds account entity validation on registration, which prevents duplicate emails or usernames as well as other violations. This validation can be disabled using a config under admin/config/people/externalauth, and is disabled by default on existing installations for backward compatibility. If disabled, the old username check is run instead.
Closes #3132453