Extract repository abstraction. The intention is that it will contain the state of configurations, database definitions, hooks etc but we are starting with just database definitions
Add some tests for new repository class