Add methods to replace environment variables

The DockerContainer class now has a method that can be used to
replace any environment variables within a given string. It is
unused in this patch.