Using the selected fields in table to generate the csv, I think is better

This way we allow user to choose and order exactly the fields he wants to be in the output json or csv (as the table panel does). 
I personally think it more user-friendly than dumping all fields in _source as the user will have to order and delete unecessary fields after downloading the csv