Move CMSMain->generatePageIconsCss() into a LeftAndMain extension (fixes #798)