Implemented Resource repository
Removed old class
Removed old tests
Improved resource controller
WIP
WIP