Fix gem source
Minor refactoring
Require mongoid >= 3
Install latest mongoid from GitHub