Make Rails 4 a supported version

Closes #687.