Upgrade to Rails 4.1

Related to #166 and #197.
Might be worth checking at some point whether this `.respond_to?` hack is still needed...