webui: stats, summary, add json response

Closes #247 .