Add ability to rewrite fetch operations to use a local mirror.