Repeat email v1

Also adds some badly needed testing infrastructure.
Oh, I see that this is because of an assumption to *not* enforce unique emails. According to #78, we are enforcing unique emails though, so we should probably keep that in. Sorry if this conflicts with what you were told before.

@brutal-chaos thoughts?