Use Rails4 from Rubygems

We can use Rails 4 from gem instead of source from github.