Allow passing function predicate for domain checks

Escape regexp construction
Don't use &= with Booleans
Rename Accounts option 'restrictCreationByEmail' to 'restrictCreationByEmailDomain'