LPS-35417 Integration Tests

Thanks Matt, PrincipalThreadLocal was the key.

testEmailSecurityAddUserWithWorkFlow() will test the case where a user creates a new account through the portal login page.

testEmailSecurityUpdateEmailAddress() will test both the adduser() api which is not available to access out of the box to a user, and the updateemail action through /c/update_email url which a user can access.

And finally testEmailUpdateUser() will test a user trying to update their email normally through the control panel my accounts page.