Added a cancel sync function, updated the remove repo and update repo functions to cancel the active sync before proceeding
Merge branch 'master' into cmissync