CS fixes on specs
Merge pull request #1702 from aRn0D/phpspec-cs-fix

CS fixes on specs
Refactor code to properly work with domain managers not repositories while creating resources
Extract interface from DomainManager class.
Fix some service declarations.
Fix more code to match manager & repository split