Fixed many issues and inconsistencies in references autolink
This is a fix identified while trying to implement URL autolink:
We no longer try to render something that looks like an email as group/user link. Also regexp was improved in other places.