Remove globals

This PR removes the usage of `$GLOBALS['TL_CONFIG']` and the inclusion of `localconfig.php` and `constants.php`.

Please merge after #4.