Move mailer and middleware
Update version