Refs #6078, fix bug where reloading report does not persist pivot and where undoing a saved pivot does nothing.
Refs #6078, #5355 only display expand/contract tooltip if row has subtable.
Refs #6078, make sure cog icon is highlighted when table is pivotted.
Refs #6078, make pivot option use the pivot by dimension's name.
Refs #6078, do not pivot table when getting siteSummary data.
Refs #6078, change default maximum column limit to 10.
Refs #6078, order pivot table columns by sum, descending and aggregate cut-off columns into 'Others' column.
Refs #6078, make sure visualizations default sort to first non-label column if filter_sort_column is not in columns_to_display and make sure changing pivot status undoes column sort.
Refs #6078, make sure sorting doesn't break if column has special characters.
Refs #6078, prepend numeral index to each column in pivotted datatable.
Refs #6078,set pivotByColumnLimit explicitly in export link so user can manipulate it.
Refs #6078, remove dead code & refactor dimension equality checks in PivotByDimension filter.
Refs #6078, make sure pivot option does not display if table is not pivotted and has no subtables (eg, when flattened).