Add frontend support for email validation.

This modifies handling of the user edit view to not send the new_email
field unless it's actually different, and to have a note about any
pending email change. If there is a change pending, a button which
cancels that change is also shown.

Change-Id: I248612c4a29e4d289fe8337b719abd1495b20df1