Feature/query result as csv

Please review my changes to export query results as CSV file (via Query Extension). Also note that there is a corresponding branch in Erfurt (pull request will follow).