Adds Cheetah Mail Logger

These changes add a logger that handles logging CheetahMail events to the database.