include external toQuery

pull in from couchdb_toQuery code, and link to github repo in
package.json