(maint) Add some support for v1 queries, experimental
(maint) Change console.log to console.error

This commit changes the console writes so that they are errors, instead
of just logging to console.