add the ability to publish initial repositorys as well.

they cant be consumed yet directly
adds the ability to set repository sync schedules
try to guess the arch based on the repo url
change callback order, otherwise its triggered after the join table has gone.
minor bugs