Update code to API v1.1

Rename
  `Prototype` to `Repository`
  `prototypeWithName` to `repositoryForClassName`
  `prototypeWithClass` to `repositoryWithClass`