Show import links only to admins, fixes #4737
Remove related events on repo deletion, fixes #641

Same that actor/actions/deleteAction.