Bump Rails version, and remove Ruby 1.8.7

* Remove Ruby 1.8.7 support
* Update Rails version to 4.0.0