Refactor notifcationsender module.
Cleanup logging messages from emailclient.