Allow HTTP connections when running tests with S3
Improve IO with IO.copy_stream and #send_file