fix - revert logic, add general flow.

Change-Id: I07e004301cbcae25dd101cdd562adb05f36bb5b0
rm - .deploy file logic - not needed.

Change-Id: I0a755842e733170f898825869173a78ca99f863d
add - new revert logic.

Change-Id: If0f0b6fed11f92298b0f584a06119ed9608f37ab
add - logic to revert handling extraction of latest tag.

Change-Id: I13bb48b9e2a6d838fad3b8eb3f7520a8a939876b
mod - cleanup sync logic, rm .deploy file - not needed.

Change-Id: I965460a3167436020b338754694c8a837aac0045
add - methods _dulwich_stage & _dulwich_commit.

Change-Id: I66e457b764fc41aa462e1c4ac66f563ce4a9b353
add - method _dulwich_reset_to_tag.

Change-Id: Iac7240e72ce46fa5cbed9b001170b28e0c95ccfc