Enhance API to make it possible to exclude ongoing events.

Refs #120. Requires #121 merged first.

Re-creating pull request after rewriting my master branch.