Fixed a bug where an empty WidgetGraphMetrics would throw a ST
Fixed a silly XSS
Smarty 2 -> 3
Bye bye smarty2.
Merge branch 'temp'