refactored negotiateLanguage, extracted getMatchesFromAcceptedLanguages