fixing header parsing error on redirection
fixing http tests for default redirects=1
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
fixing v8 call to be more compatible with different versions
Merge branch 'v1.13.x' into sam_2537