Initial Dropbox refactoring in preparation for Dropbox syncer