bug fixes for spec changes for Py, JS, rql-js
Merge branch 'ql-refactor' of github.com:rethinkdb/rethinkdb into ql-refactor