LUN-1591: preview will show snippet plugin with empty variables, even if the plugin was not saved yet
User can now change snippet in change form, and the variables will get updated.
some var renaming.
Merge pull request #47 from pbs/LUN-1591

LUN-1591: preview will show snippet plugin with empty variables