Added CSV format support
- format can be set to 'csv'
- csv_col_sep can be set, ie. '|'
- csv_sort_cols (bool) will sort based on hash keys