Reql-like mini-driver replacing some uses of anaphoric macros

Review 908 by @srh and @mlucy
Issue #806
fixing inconsistent RqlError handling
fixing progress bar for when a table is empty
fixed extprocs breaking if interrupted during construction
Merge branch 'next' into sam_97_alt