Dropbox-like file sync with S3 bucket using Node.js