Repo sync.

Implementation of repo sync backend to fetch data from remote repository at regular intervals. In case of conflicts, it should automatically resolve conflicts by allowing upstream code to win.