iOS: Fixed all bugs in Dropbox Sync prototype.

Related to issue #405.