Update to Rails 4.0.1

I had to slightly alter the devise routes because of a recent change in the rails router like described here:

https://github.com/plataformatec/devise/issues/2393