zpm: (maybe) create container before deploying

`_maybe_create_container` is now called at the beginning of deploy (to
ensure that the target container exists).
tests/test_zpm: test pre-deploy container creation

This includes tests for the behavior of _maybe_create_container in the
deployment code path.