fixes in export_as_csv and add export_as_xls (api only)

export_as_csv: add dialect. add alternative header. fix filename kwarg. filename kwarg was required even when using out kwarg

add export_as_xls (only as api, not within user interface)