Fixed language detection and redirects

Language detection was broken, as we were always redirected `/` to `/en`.
This PR fixes that, plus it detects user language priorities using Accept-Language header.