update rails 4.1 template files. Switch to hybrid cookie store