integrated ldap and email sending tasks.

integrated ldap and email sending tasks. Updated test for sending email while registering user.

Updated test code for all other actions to use the new end point url.