Replace the use of application.yml with secrets.yml

This mainly affects the sending of emails using Sendgrid.