ActionMailer setup and minor fixes