add generalized module boilerplate; add browser test server and scripts to start it; refactor multi-test environment code