Allow cacheurl to be used as a remap plugin

This also requires that the config be stored either with the remap instance or
the transaction continuation (depending on how the plugin is called) and that
more than one configuration be able to be loaded. The configuration is now
dynamically allocated as a result.