Add support for automatically determining language of repository.

This works by using either the repository's asserted language via its http headers, or by taking the official language of the country the repository is located in