add stale option to couch requests in exports view

http://manage.dimagi.com/default.asp?123161

also replace get_db with model-specific references
Merge pull request #3848 from dimagi/exports-stale

add stale option to couch requests in exports view