Update ion_auth_mongodb_model.php to make it work out of the box

The model assumes the id property is a value. Instead, it is an MongoID object holding the $id value. This fix updates the code so the $id value is used, making several features, notably the group checking, work.
I haven't thoroughly tested it, but it passed the smoke test.