Added new-style variables to allow for nesting and uniform syntax

#Var# becomes [#Var]
[Measure] becomes [&Measure]
$MouseX$ becomes [$MouseX]