Upgrade to Devise 3

solves #564