Test both ActiveRecord 3 and 4, and Mongoid version 2 and 3.
Use released alpha version for Mongo 4
Fix Mongoid configuration for Mongoid 3
Drop support for Ruby 1.8
Fix some Mongoid4 issues.
Bump mongoid