Added unit tests to check that reimporting an updated event correctly trashes, deletes and reimports the updated event.
also changed deletion rules on relationships to cascade rather than nullify.