AMBARI-4044. Refactor templates and popups. (onechiporenko)
AMBARI-4042. Fix configs dirs bug (Arsen Babych via dlysnichenko)