Small restructuring for easier testing
Add basic unittest
More sensible superglobal detection
Remove some duplication
remove some duplication
Split overlong function
be consistent with other data group names
Unify mgd1 pagecache handling
Move mgd1 removed function emulation behind compat switch