Update rails to v4.0.0
Merge branch 'rails4_release'