Upgrade rails to v4.0.6

To include latest security fixes