Build: modules defined where they are necessary

to be able to use the framework as a submodule
NPM: removed deprecated dependencies
NPM: bumped up version