log error when assure_domain_instance returns None
assure that request has the attribute user
get server_date_opened from case class
Whitespace
Merge pull request #2622 from dimagi/server_date_opened

get server_date_opened from case class
export admin billing reports
render a template lazily lest it get called at loadtime (which fails)
Merge pull request #2623 from dimagi/lazy-render

render a template lazily lest it get called at loadtime (which fails)
Merge pull request #2624 from dimagi/subscription-export

export admin billing reports
gevent 1.0 deprecates patch_httplib support

and time and select seem to cause problems for this script
change default async export format to csv
delete commented out js
make default form export format csv
refactor case and form download to flow through the same function

make "all cases, users, and referrals" default to csv
default to csv for custom case export downloads
change default bulk export format to csv
make bulk exports use the filesystem instead of StringIO
fix lazy rendering of snapshots form
Merge pull request #2627 from dimagi/lazy-render

fix lazy rendering of snapshots form
Merge pull request #2625 from dimagi/gevent-error

gevent 1.0 deprecates patch_httplib support