add support for avg grade badge and history sparkline

add missing dependencies