Improved devise.rb and add task for heroku