bit more generic csv exporter
[Fixes #13] CSV export of event definitions