S3 storage driver for next gen modifications

This still needs some more minor debugging.
Should probably check if the lookup was success and return error if not. It will make configuration errors easier to track down.