Bulk of changes

Add localization for headers
Add attributes option - to specify order of columns in result file.
Add csv_options - to specify options for CSV generator.

Fix some bugs.