Added locale switching logic.

TODO:
- add translations to de.yml
- activate logic in application_controller