Maintaining references to flot plot objects via type path. Eliminating memory leaks by listening to tree node deselect and calling shutdown() on the reference to the associated flot object, if it exists.