Feature/query service refactor

This commit refactors query service to use opentsdb 2.0, and lays the groundwork for some improvements in the js library for working with charts.