Amazon CloudFront support
move auto-versioning support to global configuration
simplified code; fixed formatting; more compatible with all distributions
Formatting fixes