- remove calls to deprecated doc_body_append
- replace deprecated calls to "ad_header" and "ad_footer" by variant based on "ad_return_top_of_page" and "StreamingHead" template
- replace deprecated call top ad_permission_grant and ad_permission_revoke by calls to  permission::grant and  permission::revoke