Add support for Mongoid4, drop support for Ruby 1.8.7.