Bump Rails dependencies to 4-0-stable