Redact emails if the other user isn't a teacher or self

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Add tests for email redacting

Signed-off-by: Sam Phippen <samphippen@googlemail.com>