Added stub for repository management, added most of pass I, collecting archives in the repository.