buildstats-summary.bbclass: Import useful bbclass from meta-mentor

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>