refs #1068
* added repository-updater script (for incron)
* removed code duplications