Issue #59: Use delegated events

This patch should move events from being hardwired to children to being delegated from the parent. Since the parent element contains the filter and not the document on the whole, the hit in performance should be negligible or even non-existent.