Massive rewrite to use repo_names.

Tomorrow we will redo all of this with cookbook names.