Fix tests

This closes #155 and #154 and supersedes #177 and #156.

I wrote a new packaging tool called Populist that does everything we needed Browserify for (entry points, global variables, and of course module loading) but creates `<script>` tags for each module so that file names and line numbers will be correct in test output.