Upgrade to rails 4.1.2, limit devise version