Flexible bulk export (inc for admin work order export)

Generalise queries and site filtering for bulk export - class-based.