Adding a function that waits for an environment to be green and ready for use outside of deployments (CNAME switching for instance). Added additional log output and line breaks for clarity.