Export to CSV

The script can now take two parameters: execute, and exportcsv. Execute
will execute all the queries with a null result, and exportcsv will
export two files fron the queries database, a file named as the json
request file with the results and a url_control file containgin all the
queries urls.