Updated Rails version and other dependencies
Change authentication to use correct Mongoid syntax