Implement ScriptableQuery.where method.

This method can get two type of parameter.
Function that returns boolean and String that evaluated value is
boolean.

See http://docs.mongodb.org/manual/reference/operator/query/where/ for
more details.