Failing test for adding already verified emails
Added EmailAlreadyTaken exception
Updated JS callback behaviour
Fixed double nonce problem

When a user updates his email twice and tries to verify with the latest link, the UPDATE statement was updating all the rows to confirmed=true, leading to an integrity error
Fixed JS behaviour for resending verification email