regenerate rails secrets for rails 4.0 and 4.1

And be just a bit less restrictive for older versions.

I've tested this locally, though not as part of a new turnkeylinux build (which takes a lot of resources).