Added a flag to track when a sync is stopped manually by the user

Conflicts:
	Model/CouchModel.m
Merge conflicts
Fixed memory leak