Reorganize to better manage dependencies

This updates things to pull in dependencies with `npm`.