Add thread visualization UI

It can be accessed via /thread.html