terraform: reorder list scan to reduce cost
terraform: Adding utility methods
terraform: save/restore dependency info for orphans