Option to turn off animation for add/remove/toggleClass

I added this option, because the jQuery UI animation for toggling the class doesn't seem to work well with the other animations. Class toggling often caused elements to stay still for a while when swapping bars or calling the layout function for trees.