add flavor support and re-organzied var_dicts

Re-organize the first level dict value in var_dict to a new searchlist
for cheetah template.

Change-Id: I584594509abc82c11302ca6db577769ab3df8db4