Prevent event propagation of events created before a link

Add event_id_at_creation field to links and use it to prevent propagation of events created before the link was made.