[DONOT MERGE] 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.

This is ``WORK IN PROGRESS``. This merge request is created for review purpose only.