Introduced "globalInitializerClasses" next to the existing "contextInitializerClasses", applying to FrameworkServlets as well

Issue: SPR-11314
(cherry picked from commit 91881ff)
Polishing
checkNotModified needs to consider HEAD as well

Issue: SPR-11317
(cherry picked from commit 17cc63e)