extends js aarg checking to all api functions
wip for JS function calls
Merge branch 'ql-refactor' of github.com:rethinkdb/rethinkdb into ql-refactor