API change: Rename Prototype to Repository

@Schoonology please review. See also the discussion in SLA-578.