Change output structure of "kpm pack"

- global.json and packages folder goes to approot
- Main project & project dependencies go to approot\src
- Extract static files from main project into public app folder
- Generate k.ini which contains APP_BASE

parent #422