terraform: Add dependencies field to modules
terraform: restore dependencies for orphan modules
terraform: initialize and attach module state
terraform: encode module dependencies
terraform: Mark modules for destroy
terraform: Handle module depedency inversion
terraform: testing the destroy order of modules
terraform: test graph with orphan module dependencies
terraform: test encoding module dependencies
terraform: test orphan dependency inversion
terraform: test module is marked for destroy
Merge pull request #598 from hashicorp/f-mod-deps

Fix dependency handling of modules