- added abstract Model
- made Rest use Model instead of Repository when storing Entities