Add regression tests - Related to #1806
Fix according to Daniel comments
Add some sys.stdout.flush + remove unused variable
Create directory if missing
Batch inserts
Clean tests + improve update
Merge branch 'next' into michel_1806_regression
Batch insert + tag queries
Merge branch 'next' into michel_1806_regression
Merge next in michel_1806
Merge branch 'sam_alt' into next
Merge branch 'sam_alt' into next
Add a try/catch
Fix queries
Merge branch 'next' of github.com:rethinkdb/rethinkdb into next