always use a lowercase domain in primary

- use a method instead of exposing regex
tests for uppercase domains and proxy_idps
Merge pull request #3729 from seanmonstar/uppercase-gmail

always use a lowercase domain in address_info