Port to Rails 4

As always collaboration is very welcome.

## caches_page

We should not use features that got removed from Rails core and extracted into separate Gems. Especially in this case since Rails 4 provides new improved caching facilities. Though this can be solved in a smaller follow up PR.