CodeStyle in frontend templates.
Closes #3784, Closes #3783, Closes #3782
CodeStyle
[imp] [33694] Don't use deprecated $app->getCfg for the plugins folder.
Closes #3553
[imp] Remove deprecated JApplication use in JRouterSite.
Closes #3789
CodeStyle
[imp] Refactor Application mocks. Closes #3776