[fix bug 818005] Multiple fixes on CSV export functionality

* Fix CSV export on incremental API requests
* Export CSV populated from a subset of available API fields
Merge pull request #331 from johngian/818005

[fix bug 818005] Multiple fixes on CSV export functionality