Move HTML handling into html.sh
HTML: Store snapshot data in snap_ instead of stats_
HTML: Fix not saving .data.mini.json
HTML: Set duration to 0 if somehow end is before start
HTML: Use server time when possible instead of client