Fixed the keep-alive mechanism.
Created new directive to transform links/emails/new lines to their respective HTML tags.  Also did some re-arranging of some code as well.