events: replace `filter` & `transform` optional arguments with a settings object
use xbrowser/dom/preventDefault instead of duplicating it in the events module