refactor export-data action
Split off logic for exporting data (more prominently items) into a separate file.
Serves as a base for upcomming features I've planned (export options, single item export and possibly multiple different export formats (columns, csv, xlsx, etc.)