cross-links: better layer-order
cross-links: refactored collision test
cross-links: replaced direct hooks by events
cross-links: process collision links only once (and delete if needed)