Change login to Devise

This removes the old login code and replaces it with the devise gem.