Rewrite Analysis.toString()

Move logic into another method and make Analysis.toString() just render the result of that method.

This is in preparation for turning the threads list into proper HTML from <pre>.