REGISTRAR: fixed bugs on invitations

- Correctly replace invitation links.
- Use mail subject as subject.