EZP-22279: Refactored StorageEngineFactory & LegacyDbHandlerFactory

Factors repository config retrieval + updated tests
EZP-22279: Added new "repository" semantic configuration