Hooks::isRegistered() doesn't consider hooks in $wgHooks.
Until that is fixed (see I39bd5de2), we need to check that explicitely.
Change-Id: I211c0c8bd0cd618151e56a11171ec8feef328d16
Caching could be enabled for other content types, but for the moment,
JS and CSS pages rely on the fact that the ShowRawCssJs hooks is called
for every view - which is bypassed when the parser cache is used.
Change-Id: Icf603b9f2a685d9e705db3459fcd12dae1fdba57
Redirects should not be constructed as wikitext, since other content models
may use other mechanisms to represent redirects.
Change-Id: Id85c3b3ada1924628e4e51757573d233e998f920