Add custom repository type

Give the possibility to add custom repository type like module_naming_scheme and toolchain does.