[WIP] Edit profile : implement email confirmation

We must confirm the new updated email when the option is enabled. References #949.
Initial commit.