Add support for dynamic containers, with enough flexibility to also replace our existing container ID replacement functionality.