refactor directory structure, add scaffolding for tests, start refactoring Repository, refactor Command