Simple engine for timeline-based events and programmatic time-travel