Reorganized the pedigree api directory structure