OAuth nickname to username
Created by: ghost
This uses the oauth nickname, when present, as the username.
Fix for issue #5813 (closed). Replaces PR #5824.
For LDAP to work as expected, requires https://github.com/gitlabhq/omniauth-ldap/pull/7 to be merged.