Swapped to a browser based test environment.

Had to move config and the router quickstart to their own files.
First test, also using define instead of require.

Require was causing race conditions, I guess there is an optimisation
in there for it somewhere.
Added basic tests for all of the query methods.
Corrected test suite naming.
Query now stores it's element in `this`.