- use "lassign" instead of "util_unlist"
- replace deprecated "ad_get_user_id" by "ad_conn user_id"
- replace deprecated "ad_require_permission" by "permission::require_permission"
- replace deprecated "ad_permission_p" by "permission::permission_p"
- use "lassign" instead of "foreach ... break" idiom