Use server-side content-negociation for language detection (thanks @harding) (fixes #478)