Add a version number and user-agent string to ForeignAPIRepo.