Move tooltip code to a separate module.
Cleaner tooltip rendering, and add h2 element.