Update Devise and Rails dependencies.
Tweak the test suite to play nicely with Devise 2 and 3.1+.