Environment Switching class for CakePHP