User email index

Added an email index for users for fast user look up via email.
Updated all tests to account for updated code.