Run popular repo tests directly inside our build (#1088)

This is a new variant of this PR that directly generates the BUILD.bazel and
poplular_repos.bzl from a python script and checks them in rather than trying to
do it in a repository rule.

Fixes #811
10 files changed