Refactor Repo

- Make Repo class static
- Refactor ObjectStorage to static methods
- add getField, getRel to SchemaTrait