Better filtering by events in API

Fixes #123