Changed dependency on mongoid to 4.0.0. Updated atomic accesses to conform to mongoid 4.0.0 syntax. Changed protected method since it was no longer accessible under ruby 2.0.0.