Refactor to use npm modules instead of git submodules.