Update Rakefile for Rails 4.
Do not need to use attr_accessible.
remove encoding utf-8 magic comments.
Update config files for Rails 4.