Add quality statistic and report data structure.
Add tests for quality report data structures.
Remove old way of generation reports.