Keep CQL box in sync with the page

This builds on PR #295—I'll rebase once that's merged.

This adds two new methods to `QueryLanguage`:

  - `toString`: converts a JSON query to a CQL query string
  - `isEquivalent`: determines if two JSON queries are equivalent

I use those in `QueryBox` to set the value in the CQL box when the page state changes, taking care not to disrupt the user while they're typing, or to override something the user typed with an equivalent machine-generated query.

This also adds a dpxdt test for filtering.

Fixes #236 
Fixes #260 
Fixes #262 
Fixes #301 
What doesn't this fix!?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/hammerlab/cycledash/306)
<!-- Reviewable:end -->

May as way stick with the functional style we're using everywhere else if using the OO method gains us nothing (the only time I think it's useful is if you're chaining a ton of operations), e.g. `q.filters = _.sortBy(q.filters, JSON.stringify);`