[event] infrastructure for timestamps on events. Also discard resource_mask
[event] add timestamp to trigger functions