Many fixes from community

Hi @kyleshank ,
thanks for this awesome work.

I was quite disappointed to see this [network mess](https://github.com/kyleshank/apt-s3/network).

So I try to add many patches in my own repo.

It may not be the best one... but it works for me®