Update rails to 4.1.0 and install gem spring
Update gemfile and install spring binstubs
Run rake rails:update
Fix routes
Update Gemfile to rails 4.2.0.beta1
Install devise from github, for compatibility with rails 4.2
Run rake rails:update