Make Repositories partially policy-aware
Summary: Small step toward repository hosting. No user-visible changes.
Test Plan: Looked at repositories in Diffusion.
Reviewers: btrahan
Reviewed By: btrahan
CC: aran
Maniphest Tasks: T603
Differential Revision: https://secure.phabricator.com/D4227