MOSYNC-3271. Fixed bugs related to cancel download issue.
MOSYNC-3271. Separated internal from external events.
Merge pull request #500 from mvasiliniuc/ThreeThreeOne_CancelDownload

MOSYNC-3271. Canceling a download causes panic 40002 on iOS.