More TODO
Handle configfiles using file locks. Add simpler internal method for checking what repositories exists. Implement CreateRepository.