JDBC auth: interface for custom password hashing classes.

This change creates new interface PasswordHasher, you can implement that
interface, choose your implementation in the properties and use it to
hash passwords your way and be compatible with your external user
database.