Add links to Application in test_deploy.
Add hostname to StartApplication in tests.
lint
_link_environment should be a free function.
Document this.