Deal with case sensitivity in user logins and repo names.

Retain the original casing in one field, but search on a separate '_key' field which is always downcased.