Add query-string parser

The parser is not yet wired up the viewer yet, however.
Select classes using indexes, not age-class-set

The viewer has a method that uses class indexes, so it makes sense to
use it.
Support leading ?-mark in query strings

Regexps weren't handling it.
Set values read from query string

A user can now set various values and have them displayed automatically,
provided they know the syntax.

Still to do is to construct a URL from the current settings, and also
support the statistics selection (so far omitted).
Support visible statistics in query-string
Add query-string formatting
Add query-string handling integration tests

The tests check that formatting a query-string and parsing it back
returns the same data.  This showed up one bug which has also been
fixed.
Add show-original flag to query-string
Wire up show-original flag to viewer
Fix minor issue with chart

For consistency, it's better to use isNotNullNorNaN in the WebKit d=""
bug workaround than comparing against null.  Also, a missing JSDoc
comment was added.
Restructure viewer to improve load performance

The problem with the viewer at the moment is that it repeatedly redraws
the chart every time it applies a query-string parameter.  It even draws
the chart twice if you don't specify any query-string parameters.  Now
it should only draw the chart once during load.
Add direct link to top panel

The direct link will open SplitsBrowser with exactly the same settings
as it is currently shown with.
Fix issue when changing classes

The competitor selection no longer fires change handlers when migrating,
as this is likely to be in the middle of a more complicated series of
changes and in the interim the chart is not yet suitable for redrawing.
Replace 'view' with 'chartType' in query string

'View' seems a bit vague and generic, and I'm half-afraid it will be
used by a website that hosts SplitsBrowser. 'chartType' seems less
generic.
Fix JSHint warning in test/test-support.js

Also modify gruntfile so that this file is subject to linting.
Various JSDoc fixes.
Fix typo in comparison selector
Merge branch issue14_query_string_handling
Minor test-data fix
Use correct property name

Change missed when replacing 'view' with 'chartType'.