add support for avg grade badge and history sparkline