Add missing documentation.
Rename query_one_persistent to query_persistent, add query_auth. Tests need to be improved.