Replace "wrap_string" by "ns_reflow_text", where the latter is a builtin of newer versions of NaviServer. When "ns_reflow_text" is not available, provide a scripted version for it.
wrap_string is marked as deprecated, since it has no proper prefix, and is less powerful than ns_reflow_text
change ad_verify_and_get_user_id to ad_conn user_id, change ad_maybe_redirect_for_registration to auth::require_login, make some db_ and dt_ function -public