Basic authentication for Rails 4 applications using mongodb & mongoid