[rails4] update outdated gems; replace PUT verb by PATCH; remove group :assets from Gemfile
[rails4] upgrade Rails to 4.0.5; fix deprecations in config files
remove attr_accessible; fix deprecation warnings in config files; update 'scopes' and 'conditions' to Rails 4 way; change routes to new way