Enhance API to make it possible to exclude ongoing events.

Refs #120. Requires #121 (which replaces #115) merged first