Dynamic secret token and update to rails 4.0.2