Repeat email v1

Also adds some badly needed testing infrastructure.
I can easily take out a couple of lines in #78 to allow the same email's registered to different users. Should I do this?