Start supporting Rails 4.0.0 or later

Rails 3.x support is dropped.