Removing an element should also remove its event listeners

According to the jQuery docs for remove, http://api.jquery.com/remove/,
'all bound events and jQuery data associated with the elements are removed'.
This change unbinds all events to the element before detaching it
from the DOM.