events: Support ignoring events of a specific type

This allows us to, for example, ignore all CHARGE events, which don't
seem to have much impact.