Fix running of tests against a live server.

This requires using a different email address for each test, so that we
can be sure it doesn't already exist.  It also requires correct handling
of the "application/json; charset=utf8" content-type which seems to be
generated by the server.


@dannycoates r?