Add generate_trace_viewer script that produces an importable trace_viewer to bin/trace_viwer.html