Magical authentication for Rails 3 & 4