Magical authentication for Rails 3