Use 'lang' attribute on the 'html' tag to set the locale

* refactor test suite
* add more tests
* controller does not return the locale anymore