Enhance API to make it possible to exclude ongoing events.

Refs #120. Requires #115 merged first