Fix sendgrid and devise configuration

Change actionmailer settings in production and other things in devise.rb