fixes #2837 add an interface to add repositories to kickstart, cleanup similar methods