Changed the language switching functionality to a CakePHP model Behavior. This enables any model to gain this functionality by adding it to the $actsAs variable and specifying the languages and settings.