Issue #875. Add a DB index to boost performance of user lookup

For the 'user by authenticated username' query scenario. Also, making username required, limiting max username + email size, and limiting other string sizes for Users.