Add support for configurable event comparison

Allows us to provide our own `strcmp`-like function for
handling event comparison.  test.c shows a simple
example of using the `*` character as a wildcard when
emitting events.

Closes #1.