Refactor of tests.

This adds a setup.js module which exports setup/teardown functions and Cardboard config, and moves the bbox query stress tests to test/bbox_query.js. The remainder of the original tests are left in test/index.js, and reorganizing them is a TODO.