Fixed auth_key authentication problems due to lowercase.

This is maily a fix for PostgreSQL, as it causes no problems on MySQL.

The lowercasing enforced in isAvailable won't cause any security problems,
because the auth_key is matched non-case sensitive on the actual login.

Fixes #5678
Changelog and version info for 1.10.1