refactor jquery.couch.js, gets rid of a lot of duplicate code, patch by Yoan Blanc, closes COUCHDB-368
refactor jquery.couch.js, gets rid of a lot of duplicate code, patch by Yoan Blanc, closes COUCHDB-368

git-svn-id: c1f8a8ec0b3bb2e99ab3413722f81f687760e79c@796228 13f79535-47bb-0310-9956-ffa450edef68

apache/couchdb-jquery-couch,apache/couchdb-jquery-couch