Convert all email addresses to lower-case

Prevents duplicate accounts with identical e-mail addresses, and users
unable to log in if typing their e-mail address with the wrong case.

WARNING: This change is incompatible with existing databases containing
non-lowercase user e-mail addresses!