Fixed enormous memory leaks

The presence of $self in a few closures was causing memory leaks on the order of about a megabyte per parser run. They are now gone.

There are still memory leaks of a similar kind around that $token in TagSoupParser.pm, but that is more of a trickle compared to the gush of the other one. It's too hairy for me to tackle it at this time.