Simplified acceptance test.

It should be more robust now. The old version intermittently failed because of timing issues.
Fixed acceptance test: an invited user can choose to sign up normally instead of accepting the invitation.

Some support methods have been created to extract relative URLs (for use during testing) from the absolute URLs present in emails (invitation and address confirmation emails).
Acceptance test: an invitation can no longer be accepted after a user starts the normal signup process.