Consider the client's Accept-Language header when selecting locale.

Also move the selection to http.php since the HTTP header won't be set elsewhere.
Set the current locale in the appropriate meta tag.