Update Q dependency.
First shot at refactoring sketch exports.
Fix DOCTYPE definition in export test.
Add single-measure export test case, improve debugging output for tests.