Add E2E test for invite-a-friend feature

The test doesn't check that email is getting sent out, but it does check
that a success message comes back from the server with the correct email
address in the message.