Add functions to detect if links are magic links

Legoktm requested to merge magic-link into main

This allows for identifying magic links since it's not as straightforward as in the legacy PHP parser. No write functionality is provided since, well, we're not encouraging that. But if someone had a good use case we could add it I suppose.

Merge request reports