Update AMI build script

Review 1657 by @Tryneus
merge of #2560 ruby driver publish fix

two small changes to fix publishing the ruby driver
adding idle notification for v8 to perform garbage collection
fixing crash on streams with r.js
Merge branch 'v1.13.x' into next

Conflicts:
	src/rdb_protocol/env.cc