Wip/liquid template

Added liquid templating engine for parse query and widget
Fixed a chart drawing bug
Fixed up test for queries controller
Cleaned up a bunch of stuff