Abstract email-service, add log support