Cleanup of acs_object_context_index' and friends in creation scripts
This change completes the commit [1] from 2019, where the cleanup was performed acs_object_context_index and its maintenance functions just as an update script. This change addresses this also in the creation scripts and in packages, still depending on the old functions.
- use $$ quoting in postgres SQL - use name parameter for SQL functions - provide compatility with pg9 - replace deprecated "acs_sc_call" by "acs_sc::invoke" - replace deprecated "ad_maybe_redirect_for_registration" by "auth::require_login" - brace expressions - favor tcl-compilable string comparisons - don't use numeric comparison operator for non-numeric arguments - use numeric comparison operator for truth value comparisons - use "in" or "ni" expression instead of "lsearch" - bump version number to indicate compatibility with 5.8.1