Move .env template resource back into deploy_revision

The .env template is pretty reliant on much of what happens in
deploy_revision. It was moved outside of deploy_revision so that the
.env template could be changed without having to have a different commit
hash available to deploy. This adds action to deploy_revision with a
data bag configurable attribute deploy_action that could be used to
force a deploy and alter .env.