Make module PHP 5.2 compatible

PHP 5.3 introduced global `const`s and `__DIR__`, so the module currently breaks on 5.2 (see also https://github.com/misd-service-development/drupal-cambridge-theme/issues/28). This makes it compatible (I've removed the constants entirely, it's a bit dangerous having some of them unnamespaced).