merging #2817 connection.js test failing when stderr/stdout going to a non-tty
Added tests.
Merge branch 'next' into mlucy_2797_index_dup
Fixed some ReQL tests.
Fixed some bugs in index_status and index_create.