AMBARI-7162. Refactor ambari-web code and ambari-agent code to use cluster-env configuration. (jaimin)