Issue #875. Add a DB index to boost performance of the common 'user by authenticated username' query. Limit max username size and other string sizes for Users.