Repository/RestControllers

- Implemented a repository pattern for rest operation.
- Created an instance of Rest Controller from which other rest
controllers can inherit from.