Add `action_controller_base` and `action_controller_api` hooks to mitigate differences between them. Also document Active Support on_load hooks
#28402

jules2689 wants to merge jules2689:action-controller-api-base-hooks into rails:master

We do not currently have an analysis of these two commits