Major update: now mongoose plugig method is used. Added regex support.

E.g.
var QueryPlugin = require(mongoose-query);
var TestSchema = new mongoose.Schema({});
TestSchema.plugin(QueryPlugin);
var testmodel = mongoose.model('test', TestSchema);
testmodel.query(req.query, function(error, data){...});