Converted all layers to NPM packages