make user#email case insensitive

this is to fix some login issues that are potentially caused by our use of case sensitive emails. Also added an index on users(email) to help with lookup performance.