wip
finished refactoring and fixed all tests
1. extracted base repository
2. repository tests actually hit db
3. refactored service tests
refactored existing stories as per new design
Merge pull request #1 from shantanusinghal/major-refactoring

Major refactoring