Add support for dynamic S3 paths based on Time

For a current project im involved in, i needed to upload logs to S3 and separate them into directories based on creation time and date (for example: year/month/day/log.json )

This commit adds support for detecting formatting strings in S3 log path, and parsing them, instead of using a static pre-defined path.

I hope you think this addition is suitable to merge into official plugin