Update rails dependencies to allow for both Rails 3 and 4.