Refactoring itest support to allow itests to connect to a running container.