Now parsing the list of languages set in the http header, and selecting the first. Handles weighting as well.