Improving the template garbage collection strategy.

Thanks to the suggestion from vamp in
https://github.com/evanworley/knockout/commit/694873da2ac2bd860bfeb416ddd073d831b29956.
We now have at most one cleanup timeout in the event queue, and we also
remove templates only when they haven't been accessed in a certain
amount of time.