[#66230914 delivers] Upgrade to Rails 4

- Remove inherited resources from controllers
- Fix model scopes
- Fix model relations
- Remove ruby version, we only need to setup this in the Gemfile
- Upgrade all gems (foundation, slim and so on)
- Fix all specs.