OAuth nickname to username

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