Move all build related boilerplate into separate npm module

Also move files in the repo to match general app repo structure.