Added a new authentication method

Added a new authentication method with custom model. Model must have
method authenticate($username, $pass_hash) and must return boolean
value.