Added DONE_INVALIDATED flag to archiving and considering it when fetching archives
Added DONE_INVALIDATED constant
Added purging of invalidated archives in scheduled tasks
Merge remote-tracking branch 'upstream/master' into feature/5932-invalidate-archived-reports
Added integration test case for data invalidation
Added tests for segments, renamed fixtures, removed code duplication, changed purge invaldiated data task priority
Merge master
Fixed tests to work with current master
Remove unnecessary comment
Merge remote-tracking branch 'upstream/master' into feature/5932-invalidate-archived-reports
Small changes in purgeInvalidatedArchives query
Merge remote-tracking branch 'upstream/master' into feature/5932-invalidate-archived-reports
Fix codeStyle in ArchivePurger, ArchiveInvalidationTest
Adding new PivotByDimension DataTable filter that can pivot a report by (almost) any dimension. The filter can pivot reports by their subtable dimension and can also pivot by other dimensions (by using segments).

Notes:

- in the UI, only pivoting by subtable is supported
- change to CSV DataTable renderer so column names w/ commas & quotes can appear in text
- change to XML DataTable renderer so column names w/ invalid XML characters can be rendered (bit of an iffy change, XML format needs an overhaul I think)
- includes new config option 'pivot_by_filter_enable_fetch_by_segment'
- includes additions to component metadata classes (ie, Report/Dimension)
Fixing build.
Fixing build.
Fix XML rendering regression.
Add public Report::isSubtableReport() method so it can be used in closure on PHP 5.3.
Make sure PivotByDimension respects original segment query parameter when fetching intersected tables by segment.
Fix another closure access error in PHP 5.3 for tests.