refactor couchapps sync
Merge branch 'master' into sync_docs
Merge pull request #359 from dimagi/sync_docs

refactor couchapps sync