improved negotiateLoginPageLanguage

language matching regExp is compliant to HTTP/1.1 and language ranges
are properly served.
E.g. If users select "en-gb", they will be served any kind of English
document if British English is not available.