Delegate events

* Events in the events hash won't get delegated if there are no
  data-thumbs-delegate events found in the template.