Statistic classes rework

Working, not yet all desired features and desired beauty and
handability. Missing StatisticsAllFactory and dynamic attribute creation
UI.