Terms stats panel

This is an improved version of #423. I fixed notes from @rashidkpc listed in previous pull request.

I'm not sure if `build_results` function is a good way to avoid making unneeded requests, I'd love to get an advice about it.