add build stage, license, package.json

* add LICENSE
* use webpack for packaging
* add package.json