Extract common base class for sync operations

Create a base class for applications which sync files with the cluster
based on the operations that are performed by a full scap. The new
AbstractSync class will be used in future changes to implement
sync-file, sync-dir and other specialized file synchronization scripts.

Change-Id: Ibb5a733437ca412e25fc15b35f2a835fcb7290f9