Partial revert of "Breaking change: Move logic for section wrapping out of skin into hook"
Apparently doing this in the hook is causing
parser cache pollution, resulting in bug T124356
This patch maintains the status quo of page HTML to avoid
breaking other things by copying over code from SkinTemplate
which hopefully we can clean up later to create the mw-content-text
element and storing it as an OutputPage property
It continues to use hooks to keep Minerva a MobileFrontend
This reverts commit 30f3bc79f9e20fe5bca8c554a3918b76f333a198.