Gk browser tooltip fix

Fixes tooltip freeze with very complex class definitions by using a new tooltip algorithm.
It might be nicer to pass in the depth when generating each sub to add \t rather than having to do search and replace each time. I think in general having to delete stuff from the string you are generated should be avoided if possible.