add COUCH_STALE_QUERY
Merge pull request #164 from dimagi/cloudant-stale

add COUCH_STALE_QUERY