Added support for contextual transforms in agg.

Using the variables py and py2 in addition to y and y2 (p = previous).
So now showing graphs like (y-py)/(y2-py2) is possible