refacor couchapp sync
Merge pull request #61 from dimagi/sync_docs

refacor couchapp sync