Add initial download CSV feature. Fixes #1038