Tweaks to code based on the Rails 4 new-app generator.