add case aware logic to form exports
Merge pull request #3013 from dimagi/export-cases

add case aware logic to form exports