Upgrade to latest rails 4.0