Add support to specify csv delimiter and allow stdout output

This commit improves the csv exporter by allowing to specify
the CSV delimiter that is going to be used. Also now supported is
specifying the output filename and a dash (-) for stdout.

This implements a suggestion raised in issue #4.