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 
Fix the formatting, align the string.Equals calls. Also instead of 2 if statements, add a list of extensions to ignore at the top of this file that we will expand as necessary