Improved purge script
Invert metrics flag
Note to self
Remove default ORIGIN in favor of config

Also adds "pathPrefix" support for origins.