modularize browser build.js
check submodule validity
add exports
add dir option
fix paths
fix paths
make stdout output possible
remove extra prints
muting testdata for stdout
base dir
fix dir
Merge branch 'refactor/browser-build'

Conflicts:
	browser/build.js