Mongoid 4 (and hence Rails 4) support

Closes #36