change behavior and use sql/auth_sql to store configuration

Use 4 new parameters:

* user_row (should be "username")
* password_row (should be "password")
* users_table (should be "authreg")
* auth_condition (should be "`realm`=$host)