Update specs and config files to be compatible with Rails 4.