Repeat email v1

Also adds some badly needed testing infrastructure.
I see you took these from the flask docs, which is good, but you should also include tests for these helper methods. I'm including the link to the docs for easy reference [1].

Those helper methods include `login, logout, register, delete_user, add_user`. I know it sounds a bit bizarre, but if *logic* is being written to back all of our tests, it should definitely be tested.

[1] http://flask.pocoo.org/docs/0.10/testing/