Add ability to re-write URLs with injected helper functions; makes it possible to map s3:// to file:// for instance.