Improving the resiliency of sync

Removed rerere
Start extracting sync functionality into library
Adding autofetch to new-fb
Adding branch name to sync
Improvements to help