provision: add SerializeEnvVars method to the App interface

Related to #472.
testing: add SerializeEnvVars to FakeApp

Related to #472.
app: export SerializeEnvVars

Related to #472.
provision/docker: serialize environment variables after Deployment

Fix #472.