Refactor build process and unify web / Node packages