Use express' request attributes when available

Tries to use `req.query`, `req.cookies`, `req.acceptLanguages` before
parsing these values again. Re-added the _extractAcceptedLanguages logic
to support this. This should make the code compatible with non-express
apps (needs testing).

Locales from cookies are now checked, as suggested by @DjebbZ .