[CLEANUP] #5205 Add wrappers for the GLOBALS

Change-Id: I1212565caaca77bb330c0607430c761f3cae3adb
Reviewed-on: http://review.typo3.org/35641
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>