Barebones testing

I was trying to do this a bit more The Right Way by using mocha+AMD+node(+amdefine) but I left that stuff on the `automated-testing` branch and opted for the more direct approach to get _something_ in place.

The downside of this is that the test is only in the browser, but we should be able to use mocha-phantomjs to run it that way anyhow. Currently this latter is failing, so I'll follow up with them.

This is, however, an outline of at least manually-run in-browser tests.