Update to Rails version 4.1.0
Replace the use of application.yml with secrets.yml

This mainly affects the sending of emails using Sendgrid.