S3 storage driver for next gen modifications

This still needs some more minor debugging.
Yeah, this is already after significant cleanup. The problem is that the zero fill behaviour of writeStream forces this into an 8-case situation. I`ll try to figure out a way to condense it further.