feat(php/s3/s3demo.php): more comments, less code duplication