add Travis after_failure script that uploads working directory to S3
Merge branch '3.x'