S3 storage driver for next gen modifications

This still needs some more minor debugging.
So, this passes as long as the number of missed writes is not 1024? What it its less?