Added a locale selector to app/views.py.
This view function will be called before each request to let us choose the language in which response is produced.
The Accept-Languages header sent by the browser is read here and the best matching language from our LANGUAGES dict is returned.